Re: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Marius Milosav

You are on the right track. :


You can also look out Compare and CompareNoCase functions.

Marius Milosav
www.scorpiosoft.com
It's not about technology, it's about people.
Virtual Help Desk Demo (VHD)
www.scorpiosoft.com/vhd/login.cfm


- Original Message -
From: "Arden Weiss" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 11:14 PM
Subject: Multiple conditions in a single CFIF statement.


> So far I've only used single  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:
>
> 
>
> without using nested 
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Christopher Olive, CIO

what you wrote was correct.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-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 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Jennifer Larkin

Arden Weiss wrote:
> 
> So far I've only used single  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:
> 
> 
> 
> without using nested 
if myvariable isn't defined then you'll throw an error. Other than that
you should be fine.

Just make sure you use parentheses to do things like


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Patricia Lee

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.




won't be any different from the first 






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 
|
|without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
|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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Jann VanOver

Yes -- you may need parenthesis -- I usually do, just in case:


Sometimes I'm REALLY careful and do:



-Original Message-
From: Arden Weiss [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 8:15 PM
To: CF-Talk
Subject: Multiple conditions in a single CFIF statement.


So far I've only used single 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-11 Thread Tim Fields

Guess what...

Try it you'll like it! I don't see anything that wouldn't work about that
syntax, just give it a spin. The only observation I would make is that you
have to make sure that both conditions are universal qualifiers for any
subsequent nested statements. The following two statements would be
identical and the former would seem pointless. Also "IS" is faster to type
than "EQ". :-)

1.  
Do something spectacular



   Do something stupid


2.  
   
  Do something spectacular
   
  Do something stupid
  


I like to eliminate redundancy wherever possible (call me chainsaw Al). Be
sure to check for the existence of the variable first (if it's not a cfset)
or set a default with 

Later,

Tim Fields
Allaire Uncertified ColdFusion Developer
Member, TeamAllaireBench




-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 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-10 Thread Tony Gruen


[do something]

my exact usage for this copy/paste was



Tony Gruen


-Original Message-
From: Arden Weiss [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 8:15 PM
To: CF-Talk
Subject: Multiple conditions in a single CFIF statement.


So far I've only used single 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Multiple conditions in a single CFIF statement.

2001-02-10 Thread Howie Hamlin

Just use parenthesis like:



HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server
Get your free copy of iMS POST-SE Server from CoolFusion!

- Original Message -
From: "Arden Weiss" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 11:14 PM
Subject: Multiple conditions in a single CFIF statement.


> So far I've only used single  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:
>
> 
>
> without using nested 
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-10 Thread Joshua Tipton

Get one of Ben Forta's books.

Josh

-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 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-10 Thread Sicular, Alexander

that would be it.



or



or



i like using () incase of complex conditions and/or and EQ for numbers and
IS for string comparisons.

good luck,

-alex

-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 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-10 Thread C. Hatton Humphrey

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:


  You can send a message

  You can't send a message.


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 

without using nested http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Multiple conditions in a single CFIF statement.

2001-02-10 Thread Dave Watts

> Can someone give me a hint or example of the CF syntax to do 
> state the following condition:
> 
> 
> 
> without using nested http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists