Hi Andrew,
You don't require the parenthesis in this case, and as long as the
expression evaluates to a Boolean value it should work fine.
eg:
<cfif SomeCondition>
= true / 1 / yes
<cfelse>
= false / 0 / no
</cfif>
<cfif not SomeCondition>
= false / 0 / no
<cfelse>
= true / 1 / yes
</cfif>
<cfscript>
if(SomeCondition)
= true / 1 / yes
else
= false / 0 / no
if(not SomeCondition)
= false / 0 / no
else
= true / 1 / yes
</cfscript>
If SomeCondition will not evaluate as Boolean, then you can wrap it in a
function to get the result you want.
eg:
<cfif len(SomeCondition)>
= true / 1 / yes
</cfif>
<cfscript>
if(not isNumeric(SomeCondition))
= false / 0 / no
else
= true / 1 / yes
</cfscript>
Is this what you are after?
Regards,
Ben
http://www.daemon.com.au/
-----Original Message-----
Is the use of () in a CFIF tag problematic in MX ?
<CFIF (SomeCondition)>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004