[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-25 Thread Rob Hoelz
Hi Mohamed, I think an alternative would be the "Parameters as Variables" syntax described here - with that, your macro would look like this: > \define getWithStatus(myStatus) > <$set name="myStatus" value=<<__myStatus__>> > > <$list

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-25 Thread PMario
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

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-25 Thread Mohamed Amin
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) Thanks again On Tuesday, August 25, 2020 at 12:33:55 PM UTC+2 PMario wrote: > Hi Mohammad

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-25 Thread PMario
Hi Mohammad, I'd use much simpler values for the status eg: OK and NOK or ok and nok, which are fast to type and easy to test. just a thought. mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop rece

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-24 Thread Mohamed Amin
Thanks a lot Saq and Eric, YES that was the problem, and using the tripled-quotes solved it immediately P.S: I've using TW5 for almost a year now, and every day I know a new (and strange) thing about this AMAZING piece of software. Thanks to all contributions & Community On Monday, August 2

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-24 Thread Eric Shulman
On Monday, August 24, 2020 at 1:41:42 PM UTC-7, Mohamed Amin wrote: > > ... I've a simple Macro to get all Tiddler by "status" : > \define getWithStatus(myStatus) > <$list filter="[all[tiddlers]contains:status[$myStatus$]]" /> > \end > As expected, when I run the below macro command: > <> > The out

[tw5] Re: Macro Call : Passing TiddlerName with quotations

2020-08-24 Thread Saq Imtiaz
Try triple quotes around the list filter: <$list filter="""[all[tiddlers]contains:status[$myStatus$]]""" /> On Monday, August 24, 2020 at 10:41:42 PM UTC+2 Mohamed Amin wrote: > Hello All, > > Appreciate you help regarding my below issue: > > Suppose that I've a set of Tiddlers called "Recipes