I have a tiddler with the following:

<$set name="myVariable" filter="[all[current]has[catanchor]]" value="1" 
emptyValue="0">

<$text text=<<myVariable>>/>

<$reveal type="match" state=<<myVariable>> text="1">

FIELD PRESENT

</$reveal>

<$reveal type="match" state=<<myVariable>> text="0">

NO FIELD

</$reveal>

</$set>
NewTiddler
field:catanchor


The above example somewhat works, 

If the field catanchor is not present myVariable is set to 0 and is 
displayed.
Conversely, if it is present, myVariable is set to 1 and is displayed.


But I am unable to reveal the text based on the value of myVariable.


It almost seems as though I'm going to be required to set a state shadow 
tiddler and pull the value from there, which seems like alot of trouble to 
through just to display and hide text.  


Is it possible to do this based on a variable instead?  

(What I'm putting between the $reveal blocks is more complex than that 
which is in the example)


Thank you, 
  Andrew J. Leer



-- 
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/62a8fa5b-f6b5-4405-9e20-e28ee123a442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to