<$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>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. LeerAlternatively you could use a list widget with filter to display content if the filter is true …