Re: A Question regarding HTML_Template_Flexy if statements
| From: | Alan Knowles | Date: | Thu, 20 Apr 2006 01:54:44 +0000 |
| Subject: | Re: A Question regarding HTML_Template_Flexy if statements | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23763@lists.php.net to get a copy of this message | ||
Clements, Brent M (SAIC) wrote:
> Can I do a standard if $key = $value evaluation using the flexy if statement functionality?
Nope, although it's trivial to add a method to do this
function isEqual($a,$b) { return $a == $b; }
{if:isEqual(foo,bar)}
otherwise just use flag's (eg. boolean variables..)
Regards
Alan
>
> In the docs I just see that you can test to see if a variable, or function returns true/false.
>
> Can I test for instance if:foo=bar
>
> Thanks,
> BC
>
>
>
> This message may contain confidential and/or privileged information. If you are not the
> addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take
> any action based on this message or any information herein. If you have received this message in
> error, please advise the sender immediately by reply e-mail and delete this message. Thank you for
> your cooperation.