mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 23:40:45 +00:00
Update docs
This commit is contained in:
parent
c1a9215677
commit
bd1bad68d8
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user