Using a variable inside a filter expression

Hi,

I have some tiddlers tagged with “Paiement”. Each one begins with a date (like 2024-09-20 for instance).
I want to list the ones beginning with a precise date, say 2024-09-19.

<<list-links filter:"[tag[Paiement]prefix[2024-09-19]]">>

works well

If I want to compute the date I cannot make it work :slight_smile:

<$set name="date" value="2024-09-19">
date : <<date>>

 <<<list-links filter:"[tag[Paiement]prefix<date>]">>
</$set>

How to pass the variable inside the filter ?

Thanks

FrD

Ok, I’ve found a way

<$set name="date" value="2024-09-19">
<$set name="myf" value="[tag[Paiement]prefix<date>]">
date : <<date>>

<<list-links filter:"[filter<myf>]">>
</$set></$set>

Case solved !

FrD

IMO list-links macro should only start with 2 angle brackest not 3
Did you try this:

<$set name="date" value="2024-09-19">
date : <<date>>

 <<list-links filter:"[tag[Paiement]prefix<date>]">>
</$set>

Yes right !

Thanks
FrD