Tag {if} ======== Tag {if} have much the same flexibility as PHP [if](http://docs.php.net/if) statements, with a few added features for the template engine. All operators, allowed functions and variables are recognized in conditions. ```smarty {if } {* ...code... *} {elseif } {* ...code... *} {else} {* ...code... *} {/if} ``` ### {if} ```smarty {if } {*...some code...*} {/if} ``` ### {elseif} ```smarty {if } {*...some code...*} {elseif } {*...some code...*} {/if} ``` ### {else} ```smarty {if } {*...some code...*} {else} {*...some code...*} {/if} ```