Eric,

Nice code. Using match after the possible values is economical, and works 
when only one value can be valid.

Regards
Tony

On Friday, February 21, 2020 at 8:19:14 PM UTC+11, Eric Shulman wrote:
>
> On Friday, February 21, 2020 at 12:28:34 AM UTC-8, Luis Gonzalez wrote:
>>
>> I have a section, <<simple-list>> that I want to show when the field 
>> "status" is fold or partial or order. Now I repeat the code three times:
>> Is there any way to make it easier?
>>
>
> You can use the $list widget to check to see if the status field matches 
> any a set of possible values.  Something like this:
> \define my-macro()
> <$list filter="[[fold]]   [[partial]] [[sort]] +[match{!!status}]"> <<
> simple-list>> </$list>
> <$list filter="[[unfold]] [[unsort]]           +[match{!!status}]"> 
> <<long-list>>   </$list>
> \end
>
> enjoy,
> -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/a9b40ed9-eecb-4a84-8b7e-1f8bcd25259c%40googlegroups.com.

Reply via email to