> > <cfif isDefined("qgetdir.strOmit") and 
> > Len(Trim(qgetdir.strOmit)) GT 0>
>
> Would that not be a nested CFIF block?
> 
> <cfif isdefined("qgetdir.strOmit")>
>       <cfif qgetdir.strOmit CONTAINS 'documents'>
>       ...
>       <cfelse>
>       ...
>       </cfif>
> </cfif>

The original CFIF condition is fine. In CF 4.0.1 and higher, CF will perform
short-circuit evaluation, so that if the first conditional part of a
compound boolean condition using an AND operator is false, CF won't evaluate
the second condition.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to