You will be able to do this with core TW5 syntax once the new filter operators with 5.1.23 are released.
With the new "filter[]" operator, each input title is compared to the filter given, and the TITLE of any matches are returned (instead of the result of the subfilter being returned, as in the "subfilter[]" operator). It is still a lot of syntax, though, in the base form: <$set $name="compareFilter" $value="[get[field_name]compare:integer:lteq [100]]"> <$list $filter="[all[tiddlers]tag[CompareList]filter<compareFilter>]"> <<<currentTiddler>> </$list> </$set> And it gets complicated when you want to change the field or index to compare to, but does offer more flexibility. Best, Joshua F On Monday, November 30, 2020 at 1:43:21 PM UTC-8 History Buff wrote: > 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 scarab...@gmail.com > 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 >>>> scarab...@gmail.com 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6aa4848a-92ab-409f-8b90-cb5b83b99c6bn%40googlegroups.com.