Path

ez.no / exponential / documentation / development / libraries / ez template / functions / section / if-then-else statements


if-then-else statements

For anyone out there that needs to do an if statment:


{let usernum=5}
{section name=if show=eq($usernum, 5)}
usernum equals 5
{/section}
{section-else}
usernum does not equal 5
{/section}

The nice part about this code, is whatever you put before {/section} will not show up unless $usernum = 5. So you can put HTML code in there and only some people can see a picture or something. Hope this helps someone!

Modified by Frey Staso on 31/03/2005 at 7:40:37 pm