Hi Mohammad, A good concrete example could be a followup to your recent template question. Here, we used the ~[...] construct to *compute* a tiddler title (or a list thereof):
<$list variable=template filter="[tag[a]] ~[tag[b]] ~[[tid3]]"> <$transclude mode=block tiddler=<<template>> /> </$list> The computation of tid2 could have been of course arbitrarily more complex than *[tag[b]].* If we wanted to use the *else* operator on the other hand, the only thing we could have done would have been to directly write tiddler titles that were previously known, like in: <$list variable=template filter="[tag[a]else[tid2]else[tid3]]"> <$transclude mode=block tiddler=<<template>> /> </$list> Or at most, got from a variable or a field: <$list variable=template filter="[tag[a]else<variable-holding-tid2>else{field-holding-tid3}]"> <$transclude mode=block tiddler=<<template>> /> </$list> By the way, your test below is indeed intriguing. It looks like the operator *title* (hidden in the <a> expression) always constructs something that won't be considered empty by the rest of the filter, whatever the value of the variable <a> is. In other words, it always returns b. It sounds like a bug to me :-) <$list filter="[<a>then<b>else<c>]"> </$list> -- Xavier On Wed, Dec 4, 2019 at 8:20 PM Mohammad <mohammad.rahm...@gmail.com> wrote: > Yes, I hope to see more example to see how they work! > > --Mohammad > > On Wednesday, December 4, 2019 at 7:36:46 PM UTC+3:30, TiddlyTweeter wrote: >> >> Could you give a concrete example? Just asking for a friend :-) >> >> On Wednesday, 4 December 2019 16:49:18 UTC+1, PMario wrote: >>> >>> Hi, >>> >>> then and else are used in a filter run. ~ starts a new run. >>> >>> See the docs list >>> <https://tiddlywiki.com/prerelease/#Filter%20Expression:%5B%5BFilter%20Expression%5D%5D%20%5B%5BFilter%20Syntax%5D%5D%20%5B%5BFilter%20Run%5D%5D%20%5B%5BFilter%20Operators%5D%5D%20%5B%5Bthen%20Operator%5D%5D%20%5B%5Belse%20Operator%5D%5D> >>> . >>> >>> -m >>> >>> -- > 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 tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/8a4a3a6b-5050-416e-85f9-9f31bfb5b8c1%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/8a4a3a6b-5050-416e-85f9-9f31bfb5b8c1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPLjYok%2BtFkFAWZP2y_r088gF%3DmbL0naYMp71gsXezTaA%40mail.gmail.com.