Since I have the filter experts in this thread: I've been struggling with a somewhat similar problem that I have tried solving using the enlist operator... unfortunately without success. I have to accomplish the following task:
1. While in TiddlerZ Read text from TiddlerA 2. Remove a prefix from text to derive name of TiddlerB 3. Look up a field value from TiddlerB 4. Plug field value into another filter My approach for solving this is essentially composed of 1. <$set name="fieldValue" filter="[[tiddlerA]removeprefix[prefix]get[fieldName]]"> 2. <$set name="filterInput" value="[listed<fieldValue>]"> 3. [subfilter[filterInput]...] These steps do what they are supposed to do, however, they fail when the field value in Tiddler is referencing a tiddler with a space, e.g. [[FirstName LastName]]. In this case, the value gets parsed as "[[fieldValue]]" which then messes up the subsequent filters. Any tips on the proper way of dealing with bracketed Tiddler names (if using camel case is not an option)? Thanks, Lorenz On Friday, April 5, 2019 at 7:29:53 AM UTC-7, Mohammad wrote: > > Added to TW-Scripts with the explanation by Matt! > > --Mohammad > > On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote: >> >> >> When trying to test for an *either/or* parameter, I used a filter, and >> found this interesting behaviour: >> >> \define test1(a b) >> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c"></$list> >> \end >> \define test2(a b) >> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c" >> ></$list> >> \end >> >> !! Test 1 >> 1. <<test1 a:A b:B>> <br> >> 2. <<test1 a:A b:"">> <br> >> 3. <<test1 a:"" b:B>> <br> >> 4. <<test1 a:"" b:"">> <br> >> >> !!Test 2 >> 1. <<test2 a:A b:B>> <br> >> 2. <<test2 a:A b:"">> <br> >> 3. <<test2 a:"" b:B>> <br> >> 4. <<test2 a:"" b:"">> <br> >> >> >> Test 1 >> >> 1. A >> 2. A >> 3. >> 4. >> >> Test 2 >> >> 1. A >> 2. A >> 3. B >> 4. c >> >> Perhaps useful too keep in mind! >> >> Cheers >> >> >> >> -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2ae4d9b3-bc96-4252-a673-347716de67f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

