ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
Templates support common control structures like if, elseif and else to handle branching paths in your template.
{#if isEven number} Even{else if isZero number} Zero{else} Odd{/if}For a full list of comparators view the dedicated section on comparison helpers
You can use exists and isEmpty to handle value existence. Values are checked against the isEmpty utility.
{#if exists valueToCheck} Value exists{/if}{#if isEmpty collectionToCheck} Collection is empty{/if}You can use is not, isExactly and isNotExactly helpers to compare values
Exactly helpers use
===comparison whileisandnotuse==
{#if is valueA valueB} Values are equal{/if}{#if not isEven number} Odd{else} Even{/if}You can use greaterThan, lessThan, greaterThanEquals, lessThanEquals to compare numeric values
{#if greaterThan numberA numberB} A is greater than B{/if}{#if lessThanEquals numberA numberB} A is less than or equal to B{/if}