On Friday, October 2, 2020 at 10:30:25 AM UTC-7, Cade Roux wrote:
>
> \define selectedindropdown()
> [constant[--any--]{$:/state/dropdownvalue} 
> contains:customtagsfield{$:/state/dropdownvalue}]
> \end
>

Try this:
\define selectedindropdown()
[{$:/state/dropdownvalue}match[--any--]] [contains:customtagsfield{$:/state/
dropdownvalue}] +[limit[1]]
\end

Note that the subfilter is actually composed of THREE filter runs:
* The first compares the $:/state/dropdownvalue to the constant "--any--".
* The second checks if the $:/state/dropdownvalue is contained in the 
customtagsfield.
* The third ensures that if both the first AND second filter runs yield 
results, only one instance of the $:/state/dropdownvalue is returned.

In this particular use-case, the +[limit[1]] filter may not be necessary, 
since by design, the "--any--" value should not be in the customtagsfield.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ff25432a-5ca5-4dfd-8d33-148b54c40e72o%40googlegroups.com.

Reply via email to