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/4acbd3d9-2833-4499-816e-8d21a2c41c34%40googlegroups.com.