Mohammad et al, Also consider the use of getvariable Operator <https://tiddlywiki.com/#getvariable%20Operator> New in: 5.1.20 The usual way to retrieve a variable value within a filter is with the angle brackets notation. For example, [<currentTiddler>] will retrieve the value of the variable called currentTiddler.
eg Untested by me just now [<a>] or [<a>match[yes]] or [<a>else[novalue]] Also is Operator <https://tiddlywiki.com/#is%20Operator> New in: 5.1.20 is[variable]] test exists as a variable (whether or not that variable has a non-blank value) blank New in: 5.1.20 is[blank] (i.e. is a zero length string) Tony On Thursday, December 5, 2019 at 1:51:20 AM UTC+11, Mohammad wrote: > > I am wondering how to use filter operator THEN, ELSE and ~(else) > > Why the below fails > > <$list filter="[<a>then<b>else<c>]> > > > </$list> > > > What is the difference between else and ~? > > <$list filter="[<a>else<b>]"> > > > </$list> > > > and > > <$list filter="[[<a>] ~[<b>]]"> > > > </$list> > > > --Mohammad > > -- 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/329c7aa6-b8e7-4c08-ada9-6c1eb1b6c7f6%40googlegroups.com.

