1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-31 07:06:19 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/conditionals/Else.tid

26 lines
442 B
Plaintext
Raw Normal View History

title: Conditionals/Else
description: Else conditional shortcut syntax
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Text
This is a <% if [<something>match[one]] %>Elephant<% else %>Crocodile<% endif %>, I think.
+
title: Output
<$let something="one">
{{Text}}
</$let>
<$let something="two">
{{Text}}
</$let>
+
title: ExpectedResult
<p>
This is a Elephant, I think.
</p><p>
This is a Crocodile, I think.
</p>