That was it.  Many thanks.
 
----- Original Message -----
Sent: Tuesday, May 21, 2002 5:02 PM
Subject: RE: Witango-Talk: syntax question

You need to use Parentheses to control order of operations.

 

<@IF EXPR="(<@arg num1> < 4) || (<@arg num2> > 0)" TRUE="yeah" FALSE="boo">

 

I have found you especially need parens in OR operations

 

Ben Johansen - http://www.pcforge.com
Authorized WiTango Reseller
http://www.pcforge.com/WiTangoGoodies.htm 
Latest downloads & List Archives @
http://www.witango.ws

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Brad Robertson
Sent:
Tuesday, May 21, 2002 4:38 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: syntax question

 

 

The doc shows you can do a "AND" in a <@if> statement by doing the something like the following:

 

<@IF EXPR="<@arg num1> <4 && <@arg num2>> 0" TRUE="yeah" FALSE="boo">

 

However, I can't seem to figure out "OR".  I've tried this with no luck:

 

<@IF EXPR="<@arg num1> <4 || <@arg num2>> 0" TRUE="yeah" FALSE="boo">

 

Thanks,


Brad

 

Reply via email to