Re: Flexy Conditions
| From: | Alan Knowles | Date: | Sun, 05 Jun 2005 15:21:53 +0000 |
| Subject: | Re: Flexy Conditions | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-19466@lists.php.net to get a copy of this message | ||
On Wed, 2005-06-01 at 15:05 +1000, Dan Rossi wrote:
> Hi there, I have yet to work out how to get condtions which check for a
> string or a value.
>
{if:testSomething(thevar,#1#)} .....
function testSomething($l,$r) { return $l == $r; }
Regards
Alan
> Something like
>
> {if:thevar==1} {end:}
>
> Is there anyway to do this ?