Um... You've already got it.  CF supports compound expressions... you simply
use the correct combination of operators, expressions and parenthesis and go
for it.

<CFIF mTEST1 EQ "ABC" AND mTEST2 EQ "DEF">

<CFIF (mTEST1 EQ "ABC") AND (mTEST2 EQ "DEF")>
        won't be any different from the first 

<CFIF (mTEST1 EQ "ABC") OR (mTEST2 EQ "DEF")>

<CFIF (mTEST1 EQ "ABC" AND mTEST2 EQ "DEF") and not (mTEST3 EQ "ABC" AND
mTEST4 EQ "DEF")>


I could go on.


|-----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

Reply via email to