On Thursday, March 2, 2017 at 10:31:16 AM UTC-8, Jed Carty wrote: > > being able to point a reveal to a variable would be nice, but I don't > think there is a way to do that. >
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 -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c5c6a53d-03a8-4f81-bb1f-a9e17379642d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

