As of CF 5 I think it was (could have been 4.5) you can "short circuit" your
CFIFs like that...no need to nest ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: "John Beynon" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 8:02 AM
Subject: RE: IsDefined do this...


> Would that not be a nested CFIF block?
>
> <cfif isdefined("qgetdir.strOmit")>
> <cfif qgetdir.strOmit CONTAINS 'documents'>
> ...
> <cfelse>
> ...
> </cfif>
> </cfif>
>
> jb.
>
> -----Original Message-----
> From: FlashGuy [mailto:[EMAIL PROTECTED]]
> Sent: 19 November 2002 15:54
> To: CF-Talk
> Subject: IsDefined do this...
>
> Hi,
>
> I'm checking a field in my database and if its equal to something do
> this...otherwise...do else...
>
> Here is my code:
>
> <cfif isDefined("qgetdir.strOmit") and Len(Trim(qgetdir.strOmit)) GT 0>
> ..do this...
> <cfelse>
> ..do this...
> </cfif>
>
> The above field contains multiple directories. I need to check if
> "documents" exists in the field qgetdir.strOmit
>
> This is what I have but it doesn't work.
>
> <cfif isDefined("qgetdir.strOmit") CONTAINS 'documents'>
>
>
>
> ---------------------------------------------------
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---------------------------------------------------
>
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to