This topic is locked

if else statements in template???

7/21/2008 8:05:45 PM
PHPRunner General questions
C
chaz author

whats the syntax for this please

J
Jane 7/22/2008

Hi,
here is a sample:

{if $variable=="your value"}

...

{/if}

C
chaz author 7/22/2008
J
Jane 7/22/2008

You can add else if needed:

{if $variable=="your value"}

...

{else}

...

{/if}