For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > December 2004 > Re: [SMARTY] bug equating zero and null









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] bug equating zero and null
Thomas Lee

2004-12-21, 8:58 am

You can use PHP functions inside if/else clauses:

{if isset($x) and ($x == 0)}
....
{/if}

On Tue, 2004-12-21 at 21:34, Heitzso wrote:[color=darkred]
> But php gives me "===" and as of 2.6.3 smarty doc
> (running gentoo linux) smarty doesn't have that
> equivalent test. ?
>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com