Hi OK -- sorry, I misunderstood your usage.
There is no restriction with the $reveal widget to use only a pair of widgets, one with 'match' and one with 'nomatch'. You may use as many $reveal widgets as necessary (in different places) each of which is set to 'match' and reveals itself iff there is a match to the state tiddler value. This permits: -- buttons that cycle through many values (each $reveal widget revealing a button that sets the state to match the next widget in the chain) -- buttons that reveal several different sections of Wikitext in any location This second facility may simplify your code, as both the tag itself, and some text elsewhere can be revealed/hidden with the same button (both $reveal widgets are set to reveal if there is a match to the same value of the state tiddler.) <$reveal type="match" state="$:/state/Reveal" text="hide"> <$button set="$:/state/Reveal" setTo="show">Next</$button> </$reveal> <$reveal type="match" state="$:/state/Reveal" text="show"> <$button set="$:/state/Reveal" setTo="showmeto">Next</$button> ! This is the revealed content And this is some text </$reveal> <$reveal type="match" state="$:/state/Reveal" text="showmeto"> <$button set="$:/state/Reveal" setTo="hide">Next</$button> ! This is the revealed content And this is some text </$reveal> <$reveal type="match" state="$:/state/Reveal" text="showmeto"> ! and this is some more revealed content somewhere else And this is some text </$reveal> Note: The state tiddler needs to be 'booted' with one of the appropriate values for one of the buttons in the chain to show regards On Tuesday, 20 October 2015 07:47:26 UTC+2, Andrew wrote: > > Thank you all very much for your suggestions. While they didn't solve my > problem directly, they have given me something to work with. I've continued > hacking and have something that seems to work now. I still don't know if I > am doing something wrong even though it seems to work. > Check out my new updated Toggle Macro > <http://t5a.tiddlyspot.com/#%24%3A%2FMacros%2FToggle>. And here is an > example <http://t5a.tiddlyspot.com/#Example%20Toggle%20Tags> of it > working. Any feedback welcome. If it needs to be rewritten in a different > way or more elegant way or functionally different, please let me know. I > feel like I am reinventing something that probably has already been done a > different way. > -- 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 http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2e53c6fd-6738-45b2-9ce3-48dd694981b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

