I have tried that syntax it still doesn't work, I get no result.
no result:
<$list filter="[lessthan:birth{!!year}greaterthan:death{!!year}
tag[People]]">
expected result:
<$list filter="[lessthan:birth[1950]greaterthan:death[1950]tag[People]]">
On Monday, November 27, 2017 at 10:00:54 AM UTC-5, Eric Shulman wrote:
>
> On Monday, November 27, 2017 at 6:00:06 AM UTC-8, Gabriel Perlmutter wrote:
>>
>> So this give me no result:
>> <$list
>> filter="[lessthan:birth[{{!!year}}]greaterthan:death[{{!!year}}]tag[People]]">
>> But this gives me the expected results:
>> <$list filter="[lessthan:birth[1950]greaterthan:death[1950]tag[People]]">
>>
>
> You have too many brackets. Think of the brackets as part of the operand
> itself rather than a "container" for the operand. The type of bracket
> indicates the type of operand being used:
> use [...] for literal values, e.g., [texthere]
> use {...} for field references, e.g., {!!fieldname}
> use <...> for variables e.g. <currentTiddler>
>
> Also note that, unlike references used as arguments to macros, which use
> doubled brackets (i.e., [[...]], {{...}} and <<...>>, filter operands only
> use SINGLE brackets. Thus, for your use-case (a field reference operand),
> omit the square brackets entirely, and only use ONE set of curly braces,
> like this:
>
> <$list
> filter="[lessthan:birth{!!year}greaterthan:death{!!year}tag[People]]">
>
> Let me know how it goes.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8d9feac8-5320-4a79-aa16-df32fd3e59d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.