Assuming all variables are defines, the way you've put it will work, but you
might also look into the CFSwitch statement... it's handy for selecting one
option from many.
You can also "group" your if with parenthesis... for example:
<cfif (access EQ 1 AND email NEQ "") OR (access EQ 2 AND formflag EQ 1)>
You can send a message
<cfelse>
You can't send a message.
</cfif>
HTH
Hatton Humphrey
-----Original Message-----
From: Arden Weiss [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 11:15 PM
To: CF-Talk
Subject: Multiple conditions in a single CFIF statement.
So far I've only used single <CFIF statements - hence don't know syntax for
multiple conditions and haven't been able to find an example in the books I
have.
Can someone give me a hint or example of the CF syntax to do state the
following condition:
<CFIF mTEST1 EQ "ABC" AND mTEST2 EQ "DEF">
without using nested <CFIF statements???
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists