More help transcluding field value

Hi

@EricShulman solved my previous query to transclude the number in field N

{{{ [tag[A]get[b]compare:number:gt{!!N}] }}}

If I wanted to get a list of the titles without tranclusion, this would work

{{{ [tag[A]]:filter[get[b]compare:number:gt[5]] }}}

but for some reason I can’t get it to work when attempting to transclude the field again.

Thanks
Jon

Within the :filter[...] filter run, the current tiddler is set to each title from the preceding [tag[A]] filter run.

Thus, using {!!N} is no longer referring to a field in the tiddler that contains the entire filter syntax.

As a workaround, you can use a variable to fetch the field value before invoking the filter and then reference that variable within the filter syntax, like this:

<$let N={{!!N}}>
{{{ [tag[A]] :filter[get[b]compare:number:gt<N>] }}}
</$let>

-e

1 Like

Many thanks again Eric!

Regards
Jon