Hi Mohamed, I think an alternative would be the "Parameters as Variables" syntax described here <https://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText> - with that, your macro would look like this:
> \define getWithStatus(myStatus) > <$set name="myStatus" value=<<__myStatus__>> > > <$list filter="[all[tiddlers]field:status<myStatus>]"> > > <<currentTiddler>> > </$list> > </$set> > > \end On Tuesday, August 25, 2020 at 9:57:28 AM UTC-5 PMario wrote: > On Tuesday, August 25, 2020 at 1:14:25 PM UTC+2, Mohamed Amin wrote: >> >> Thanks PMario for your comment, >> >> Actually the above were not a "real" values, just a way to present my >> issue, in real word I'm using True/False or Yes/No (but your suggestion >> "ok"/"nok" are very nice too) >> > > yes / no is also used by TW for several settings, because true / false ... > seemed to be to "techy" ;) IMO yes and no are good! I just wanted to point > out, that "terms" with no spaces are easier to handle. > > -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/c71ad93a-4036-4380-b7a8-922b7166056dn%40googlegroups.com.