Hi Steve, your pretty close.

Heres what it looks like you want to do:

<@if expr="<@column enrollment.attendance>!=1">
Completed
</@if>

the main difference you see is expr= "   "
with the expression inside the quotes.  You can put any expression in there,
using and, or != (does not equal) =, <, > etc.  All the goodies you can
think of.  Dont let the expr= part fool you into thinking it has to be an if
= equation.

Also, you may already know this but if you have to use quotes within quotes
(ie <@column enrollment.attendance> = "1" within the expression), you should
alternate between single and double quotes (ie  <@if expr="<@column
enrollment.attendance>!='1'">).

Hope this helps
-Atrix

----- Original Message -----
From: "Campbell, Steve V." <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 9:28 AM
Subject: RE: Witango-Talk: <@IF EXPR>


Hello

I am trying to do an if statement to check for a result. Basically if
the number in a column is "so and so" then I need it to do <@else>  "so
and so">

This is my code:

<@IF VALUE=<@COLUMN "enrollment.attendance"> 1
<@ELSE>
Completed
</@IF>


I have three of those for completed, no showed and cancelled all back to
back.  All of them look like the above, but it's not working.

Should it be <@IF EXPR= expr, etc.>??

Thanks for any help...

Steve
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to