This macro offers a solution for simple if-then-else text
generation. It presents some added value compared to the reveal widget:
it accepts variables as well as text references and it can show an error
message. The ifAisB macro comes with full documentation in the tiddler $:/_telmiger/ifAisB – a link to the documentation can also be found below.
Credits and more examples: This solution was inspired by and developed together with Måns who describes his usage of a former version in this post in the Google group. Many others have contributed with relating posts or inspiring ideas. So thank you, TW community!
A shorthand macro to test if the value of a field priority equals "a" could be defined and used like this:
\define check-a() <$macrocall $name="ifAisB" A={{!!priority}} B="a" then="priority is a" else="priority is not a"/>
<<check-a>>I just played a bit with a short quiz macro that uses ifAisB and a buttoun to set tags …--
Have fun!
Thomas
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+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@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/889379c0-ecf0-441e-8ae0-60cc71fc57c5%40googlegroups.com.
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/8050d8cb-70f7-49ef-a031-a0453c8503f4%40googlegroups.com.