try [get[importance]compare:number:gteq[5]]

this assumes you want to compare a field with name importance

On Tuesday, June 16, 2020 at 1:07:28 PM UTC+2, OGNSYA wrote:
>
> Thanks for that Eric. 
> For some reason it didn't work for me...
>
> This simple case works, for showing all tiddlers with importance set as 5:
> (note I changed the field name from *priority* to *importance*)
> [importance[5]]
>
> I tried this, for showing all tiddlers with importance 5 or higher: 
> [importance[{!!importance}compare:number:gteq[5]]]
>
> I also tried just this:
> [{!!importance}compare:number:gteq[5]]
>
>
> On Tuesday, June 16, 2020 at 11:33:20 AM UTC+1, Eric Shulman wrote:
>>
>> On Tuesday, June 16, 2020 at 3:04:46 AM UTC-7, OGNSYA wrote:
>>>
>>> Thanks! I did see that, but couldn't figure out how to actually use it.
>>> Let's say I want to filter only tiddlers where the custom field 
>>> *priority* is 5 or greater.
>>>
>>
>> Give this a try: 
>> [{!!priority}compare:number:gteq[5]]
>>
>> Note that, in filter syntax, you use *single* brackets around references,
>> and except for the outermost square brackets around the whole filter run,
>> the brackets are part of the reference itself, where
>> *[...] is for literal values, {...} is for field values, and <...> is for 
>> variables*
>>
>> So, for example, in addition to the above syntax for comparing with a 
>> literal value of "5",
>> you could compare with a value stored in another field:
>> [{!!priority}compare:number:gteq{!!minimum}]
>> or with a value from a variable:
>> <$vars minimum="5">
>> [{!!priority}compare:number:gteq<minimum>]
>> </$vars>
>>
>> hope this helps,
>>
>> 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/6dfdc0a1-9949-4de1-892d-dc8c628a34f8o%40googlegroups.com.

Reply via email to