On Monday, July 20, 2020 at 6:17:11 AM UTC-7, Mat wrote:
>
> After some testing I can only say I agree. Why on earth doesn't that
> work??? I also tried
>
> <$vars date={{!!modified}}>
> {{{ [[20220701]compare:date:gr<date>] }}}
> </$vars>
>
Three things:
1) The "greater than" compare suffix mode is "gt"... not "gr" !!!
2) If you are comparing against a date value like {{!!modified}}, you need
to specify the full 17-digit value
3) The filter you used in your example will return the literal value, not
the <date> variable.
Try this:
<$vars date={{!!modified}}>
{{{ [[20220701000000000]compare:date:gt<date>then<date>] }}}
</$vars>
which means: if <date> is greater than [20220701000000000], result = <date>
or this:
{{{ [{!!modified}compare:date:le[20220701000000000]] }}}
which means: if [20220701000000000] is less than or equal to
{{!!modified}}, result = {{!!modified}}
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/b13f9979-c9de-4092-86e2-333676d31d4bo%40googlegroups.com.