Home > Archive > PHP Pear > June 2005 > Flexy Conditions
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]
|
|
| Dan Rossi 2005-06-01, 3:56 am |
| Hi there, I have yet to work out how to get condtions which check for a
string or a value.
Something like
{if:thevar==1} {end:}
Is there anyway to do this ?
| |
| Alan Knowles 2005-06-05, 3:57 pm |
|
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 ?
| |
| Alan Knowles 2005-06-05, 3:57 pm |
|
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 ?
|
|
|
|
|