David,
On Wednesday, 27 February 2019 23:46:51 UTC+10, 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.
>
>
> This is what I was trying to achieve with my earlier post. The following:
{{{ [[myMacro]] +[!is[variable]addsuffix[ is not defined]] }}}
Should produce "myMacro is not defined" or nothing if the macro or variable
is defined - achieving what you are after in a clear and concise way, but
the "!" does not seem to be working. If you try a similar arrangement to
test for non-existence of a tiddler, using "!is[tiddler]", it does work as
expected.
I think I will raise this as a GitHub issue.
Regards,
Mal
Regards,
Mal
--
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/9c98b60f-08e4-4c76-a3bc-6e2fc85e5fe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.