Hi, can anyone advise on the correct syntax for use with the days operator in a filter?
The tiddlers concerned have a historic date set as a field named ‘last-reviewed3’.
If I write my filter with hard coded numbers…here the example is -800 then it seems to work as expected.
So here is the first part of the filter, and in the following case with a test hard-coded value of -800 it seems to work as expected.
<$list filter=’[all[tiddlers]!is[system]!tag[z hidden]has:field[last-reviewed3]!days:last-reviewed3[-800]
In the above filter, the part…
!days:last-reviewed3[-800]
…allows through only those tiddlers having a ‘last-reviewed3’ date field which is at least 800 days in the past from today and with the hard coded value of -800 this all seems to work as expected.
But actually, instead of the hard coded value of -800 I wish to use a value stored in each tiddler in a field named ‘interval3’ which might be set with the same value of -800 but might equally be -30.
So the filter expression would look something like this…
I have indicated missing syntax which I am struggling to find with as question marks ???
<$list filter=’[all[tiddlers]!is[system]!tag[z hidden]has:field[last-reviewed3]!days:last-reviewed3[???interval3???]
So my question is what syntax do I need to replace the question marks (???) in the above, my attempts so far seem to be failing to get it right. The behaviour observed with my feeble attempts is that the days part of the filter seems to allow everything through when I attempt to use the value in the tiddler field interval3 and in contrast it works with the hard-coded value of -800 etc.
Thanks.
I am storing the historic date in each tiddler in the field named ‘last-reviewed3’ with the tiddlywiki default date format of [UTC]YYYY0MM0DD0hh0mm0ss0XXX
Background: This relates to my first attempts at prototyping a solution to my post