On Monday, May 10, 2021 at 11:31:07 PM UTC-7 [email protected] wrote:

> Ok, this might get me somewhere. I did some testing like so, but the 
> classname is always black:
> <$set name=number value=-5>
> <$set name=cssclassname 
> filter="[<<number>>sign[]match[-1]then[red-bold]else[black]]">
> <span class=<<cssclassname>>><<number>></span>
> </$set>
> </$set>
>

Use *single angle brackets for variable references in filters.*

Thus:
 <$set name=cssclassname filter="[*<number>*
sign[]match[-1]then[red-bold]else[black]]">

-e

-- 
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/e818095f-9946-4952-a87e-1a1dc5b80b1fn%40googlegroups.com.

Reply via email to