On Tuesday, January 9, 2018 at 8:25:59 PM UTC-8, Evan Balster wrote:
>
> I made a "condition" plugin for situations like that.  TiddlyWiki's 
> built-in reveal widget has a similar purpose but only considers the "text" 
> field of a target tiddler.
>

Actually, the core <$reveal> widget DOES let you compare arbitrary 
TextReference values.  Instead of using the "state" and "text" params, 
using "text" and "default" params instead.  The "default" param is used 
whenever the "state" param is blank **or missing**.  Thus:

<$reveal default={{!!webid}} type="match" text="">
   There is no webID
</$reveal>

Both "default" and "text" params can be used with ANY TextReference, 
including literals ("foo"), variables( <<foo>> ), and field references ( 
{{!!foo}} ).

enjoy,
-e
Eric Shulman
TiddlyTools.com: "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/1c4b8746-6831-4d7b-bdc6-7f42132ab6e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to