Re: [tw5] assigning macro output to a variable

2021-12-20 Thread Flibbles
I know I'm late, but variables may work better than arguments if you want to keep the filter separate. \define check_feature() [getindextrim[]match[Y]] <$let feature={{!!current_chosen_feature}} has_feature=<> <$list filter="[tag[system]filter]" variable="sys"> <$link

Re: [tw5] assigning macro output to a variable

2021-12-16 Thread Brian Theado
CarloGgi, On Wed, Dec 15, 2021 at 2:02 PM CarloGgi wrote: > \define check_feature(feature) [getindex[$feature$]trim[]match[Y]] > > <$set name="has_feature" value=<$macrocall $name='check_feature' > feature='IFTTT'/> > > > <$list filter="[tag[system]filter]" variable="sys"> >

[tw5] assigning macro output to a variable

2021-12-15 Thread CarloGgi
Hi everybody, the struggle to get TW do what I want it to do goes on hopelessly. I have a database of systems described by one data tiddler each, like this: system_1 tag: system feature 11: Y/N feature 12: Y/N feature 13: Y/N feature 14: Y/N system_2 tag: syste