How to pass a tiddler field value to a compare operand

54 views
Skip to first unread message

vpl

unread,
Nov 27, 2020, 4:52:44 AM11/27/20
to TiddlyWiki
Hi,

Discovering this compare operator I block on one point ..

I have a set of tiddlers with a "date" field
I want to list & filter them based on their date field when it's greater than a value store in a reference tiddler field called 'referencets'

I've tried the following but it does not take into account my referencets value
<$list filter="[tag[test-1]get[date]compare:date:gt[{{!!referencets}}]]">

</$list>

I've also tried with simple bracket but not working ...
<$list filter="[tag[test-1]get[date]compare:date:gt[{!!referencets}]]">

</$list>

Any magic idea ?

Thanks a lot for your help and support

Regards Vpl


Saq Imtiaz

unread,
Nov 27, 2020, 4:56:43 AM11/27/20
to TiddlyWiki
The correct syntax would be:

<$list filter="[tag[test-1]get[date]compare:date:gt{!!referencets}]">

</$list>

vpl

unread,
Nov 27, 2020, 5:17:04 AM11/27/20
to TiddlyWiki
magic !!! Many thanks
Reply all
Reply to author
Forward
0 new messages