Fun little task.
You might want some additional style tweaking but here's how you can do it:
\define rating() Rating <span style="background-color:$(color)$">{{!!rating
}}</span>
<$list filter="[{!!rating}compare:integer:gt[70]then[green]]
~[{!!rating}compare:integer:gt[50]then[grey]] ~[[red]]" variable=color>
<<rating>>
</$list>
<:-)
--
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/50031efc-8911-44b0-8b62-4553418baf73o%40googlegroups.com.