mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
667 B
667 B
Tag {if}
Tag {if} have much the same flexibility as PHP if statements, with a few added features for the template engine. All operators, allowed functions and variables are recognized in conditions.
{if <expression>}
{* ...code... *}
{elseif <expression>}
{* ...code... *}
{else}
{* ...code... *}
{/if}
{if}
{if <expression>}
{*...some code...*}
{/if}
{elseif}
{if <expression1>}
{*...some code...*}
{elseif <expression2>}
{*...some code...*}
{/if}
{else}
{if <expression>}
{*...some code...*}
{else}
{*...some code...*}
{/if}