This seems to work for me. \define variable-test(var) <$list filter="[[$var$]] +[is[variable]]" emptyMessage="''$var$'' - Undefined variable or macro"> </$list> \end
1. <<variable-test list-links>> 2. <<variable-test list-linkss>> It uses a single line return with nothing else in the *results area* before the closing tag </$list> to give an empty looking result. I don't know if this is an undocumented feature, or if it's a bug that will be fixed at some point causing this macro to break down. If that bothers you, just use an unused macro such as <<emptyMessage>> in the *result area*. Regards On Wednesday, February 27, 2019 at 8:46:51 PM UTC+7, David Nebauer wrote: > > 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 > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/a5197e96-0444-49d0-a96c-d8c36945d326%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.