Normally, the <$reveal> widget uses params "state" and "text" to compare a value stored in a "state" tiddler with some literal "text" value.
There is also a third param, "default" that is used as a fallback value to compare with if the state tiddler is not found or if the state="..." param is not defined.
Thus, if you omit the state="..." param, and use default="..." instead, you can use <$reveal> to compare values stored in variables.
Something like this:
<$reveal text=<<variable>> type="match" default="somevalue">
...
</$reveal>
or
<$reveal text=<<variable>> type="match" default=<<anothervariable>>>
...
</$reveal>
enjoy,
-e
Eric Shulman
TiddlyTools: Small Tools for Big Ideas (tm)
InsideTiddlyWiki: The Missing Manuals