could someone help me see what I’m misunderstanding about passing variables into filters? (This is coming up because of a more complicated filter where I’d like to in pass )
You should omit the brackets when using a variable name in a filter expression
<$set name=animal value="lion">
Number of tiddlers with this tag: <$count filter="
[all[tiddlers]tag<animal>]"/>
</$set>
{Edit] After reading Eric’s detailed and helpful explanation I noticed that I missed the closed SetWidget, too. Therefore I corrected my code above.Sorry!
Thank you, Eric.
@Brian_Radspinner , I am a great fan of your Those Pesky brackets… page, I have it open whenever I am doing TW stuff. I would like to contribute to the content but see no easy way to do this. Certainly, I think @EricShulman comments above , wrt brackets, could almost be an opening page as whenever I have a problem, I have no simple way to map my problem on to the correct tiddler in your site. Eric’s explanation, three simple lines, could be a useful entry into your tw’s page. @EricShulman, this could also be true for TW’s documentation.
Brian, maybe you could also provide an email link for more suggestions, feedback, etc.