Hi all A new "hack" is ready for you to try – I hope you will find it useful, e.g. to create quizzes or tests, to automate letters, …
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 <https://tid.li/tw5/hacks.html#%24%3A%2F_telmiger%2FifAisB> – 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 <https://groups.google.com/d/msg/tiddlywiki/tm1MH8etwrE/z__sB_TJAgAJ> 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>> ------------------------------ See documentation here: https://tid.li/tw5/hacks.html#ifAisB%20%E2%80%93%20Compare%20if-then-else%20Style%20in%20Wikitext As always: *Do yourself a favour and save a backup* before trying my stuff. Let me know if it works for you. All the best, 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 [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/8050d8cb-70f7-49ef-a031-a0453c8503f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

