Hmm, I may have declared success prematurely. Is there a way to reformulate the test so that if the macro *is* defined, the <$list> displays nothing. I really only want output if the error condition -- a missing macro -- occurs. Otherwise I want it to do nothing while the rest of the tiddlyscript in the tiddler executes.
-David On Wednesday, 27 February 2019 16:22:52 UTC+9:30, Mohammad wrote: > > Thanks David! > Added to TW-Scripts. > > --Mohammad > > > > On Wednesday, February 27, 2019 at 5:07:17 AM UTC+3:30, David Nebauer > wrote: >> >> Thanks very much, Mohammad and Jeremy. For future reference, here is what >> I was seeking: >> >> <$list filter="[[VAR_OR_MACRO_NAME]] +[is[variable]addsuffix[ is a >> variable]] ~[[Undefined variable or macro 'VAR_OR_MACRO_NAME']]"> >> <<currentTiddler>> >> </$list> >> >> If anyone else sees the option for marking this topic complete, please >> feel free to click it. (For whatever reason, I've never seen that option.) >> >> Also, I'm not seeing the usual button for inserting code, hence the fixed >> width text above, which I hope renders sensibly when I press *Send*. >> This is new for me. >> >>> -- 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/690bd4e2-ab5e-4989-9bc8-e1be4c27c600%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

