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/fb63c6a2-20bc-42b0-9d77-9ff3020d34a7n%40googlegroups.com.

Reply via email to