I agree that Joshua's plugin is much easier and clearer to use. Took me two minutes to install and implement exactly what I needed. At least for the way my brain works, it's much more intuitive.
Damon On Monday, November 30, 2020 at 12:06:31 PM UTC-7 [email protected] wrote: > Eric, > Great tips there! I'll still recommend Joshua Fontany plugin, however, for > clarity and ease of use. > > Another tip on top of Tones comment; Looping through a list will > automatically overwrite the variable "currentTiddler", so if you want to > retain access to the tiddler you are working in, you will have to use the > "variable" argument in the list: > > E.g.: > /* without 'variable' */ > <$list filter="[range[1,10]]"> > <<currentTiddler>> > </$list> > /* output: 1 2 3 4 5 6 7 8 9 10 */ > > /* with 'variable' */ > <$list filter="[range[1,10]]" variable="mynumber"> > <<mynumber>>:<<currentTiddler>> > </$list> > /* output: 1:MyTitle 2:MyTitle 3:MyTitle 4:MyTitle 5:MyTitle 6:MyTitle > 7:MyTitle 8:MyTitle 9:MyTitle 10:MyTitle */ > > > On Sunday, November 29, 2020 at 6:41:58 PM UTC-8 TW Tones wrote: > >> History 1Buff, >> >> I will just add to Erics note that when you cause the value of a field or >> macro etc.. to be available as the result of a filter each item, is >> considered a "title" even if their is not a tiddler with that title. >> >> Eg; >> <$list filter="[range[1,10]]"> >> >> </$list> >> In side the list the currentTiddler title will be 1,2,3 - 10 >> >> Regards >> Tones >> >> On Monday, 30 November 2020 at 07:19:43 UTC+11 Eric Shulman wrote: >> >>> On Wednesday, September 30, 2020 at 1:34:39 PM UTC-7 [email protected] >>> wrote: >>> >>>> I'm looking for a way to get tiddlers based on comparing integer fields >>>> existing in them. This filter works: >>>> [myfieldOne[2]myfieldTwo[2]] >>>> I'd like something like: >>>> [myfieldOne[lteq[2]]myfieldTwo[lteq[2]]] >>>> I know there are compare operators ( >>>> https://tiddlywiki.com/#compare%20Operator), but I haven't figured out >>>> how to use it to filter the lists. >>>> >>> >>> To compare a single field value with an integer, returning the tiddler >>> title: >>> >>> [<currentTiddler>get[myfieldOne]compare:integer:lteq[2]then<currentTiddler>] >>> >>> To compare two different field values with integers, returning the >>> tiddler title: >>> >>> [<currentTiddler>get[myfieldOne]compare:integer:lteq[2]then<currentTiddler>get[myfieldTwo]compare:integer:lteq[2]then<currentTiddler>] >>> >>> Note that each field must exist AND have a value (i.e., not blank) >>> >>> enjoy, >>> -e >>> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/388e3760-72cd-47a9-bedd-bb10cb2eb6b1n%40googlegroups.com.

