Hi David,
<$list filter="[tag[blah]has[year](somehow)year<19]">
>
> </$list>
>
I know you're looking specifically for a filter operator. But for the time
being, is there any reason why you wouldn't settle for the reveal widget?
This should work based on your code above. You can use that for multiple
outcomes, use dynamically generated 'variables' and even nest your
conditions, if needed:
<$list filter="[tag[blah]has[year]]">
<$vars year={{!!year}}>
<$reveal default=<<year>> type="lt" text="19">
content/actions if field "year" has a value that is less than 19
</$reveal>
</$vars>
</$list>
One thing to note is that I'd use a 4-digit year to avoid problems with no
leading zeroes in single digit years, the reveal widget may sometimes
return unexpected results in these cases. Once that's taken care of, the
reveal widget is probably the best 'scenario routing'/comparison mechanism
that we have in TW at the moment, short of js of course.
More here. <https://tiddlywiki.com/static/RevealWidget.html>
Thanks,
Hubert
On Tuesday, 3 March 2020 12:51:47 UTC, David Allen wrote:
>
> Looking for a filter operator that will let me compare numbers in fields.
>
> <$list filter="[tag[blah]has[year](somehow)year<19]">
>
> </$list>
>
> Just kind of as an example
>
--
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/504e2b2f-dc3a-4f62-8f1c-bb8b8d9f56e9%40googlegroups.com.