Evaluates the expression as a boolean value and executes the appropriate content. Can also be used with an else or elseif tag.

{if $name eq 'Bob'}
    <p>Hello, 'Bob'</p>
{elseif $name eq 'Steve'}
    <p>Hello, 'Steve'</p>
{else}
    <p>Hello, '{$name}'<p>
{/if}

Last edited Feb 16, 2010 at 8:57 AM by JacoPretorius, version 1

Comments

No comments yet.