1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00

Update docs

This commit is contained in:
Jeremy Ruston 2023-09-01 14:41:39 +01:00
parent c1a9215677
commit bd1bad68d8

View File

@ -4,11 +4,12 @@ tags: WikiText
title: Conditional Shortcut Syntax
type: text/vnd.tiddlywiki
The conditional shortcut syntax provides a convenient way to express if-then-else logic within WikiText. For example:
The conditional shortcut syntax provides a convenient way to express if-then-else logic within WikiText. It evaluates a filter and considers the condition to be true if there is at least one result.
For example:
<$macrocall $name='wikitext-example-without-html'
src='
\procedure test(animal)
src='\procedure test(animal)
{% if [<animal>match[Elephant]] %}
It is an elephant
{% else %}