On Saturday, July 28, 2018 at 1:28:39 PM UTC-7, Mark S. wrote: > > AFAIK state can only take a text reference. The Reveal widget acts the > most like structures in other languages that people are familiar with, so > it would be useful if it could make variable/variable comparisons as well. > On Saturday, July 28, 2018 at 1:00:58 PM UTC-7, Diego Mesa wrote: >> >> Thanks for this! Just to confirm, state *can't* take a variable directly >> right? Like: >> <$reveal state=<<result>> type="nomatch" text="0" >> <<result>> >> </$reveal> >> > In the <$reveal> widget, you can use default=... parameter to specify a value from a variable, as documented:
default Default value to use when the state tiddler is missing Thus, OMIT the state=... param, and use default=... instead: <$reveal text=<<result>> type="nomatch" default="0"> enjoy, -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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/00532fcf-85fc-4dc9-9033-80b2d184800d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.