Templater conditionals
The syntax is:
<%* if (condition) { -%>
Text to show if condition is true
<%* } else { -%>
Text to show if condition is false
<%* } -%>
Note that there are two details here:
- It is a dynamic block, starting with
<%* - It ends with
-%>so that there are no new lines after the conditional processing.