I have an instance where I have three or four levels of CFIFs that are
nested and include another template or redirect the browser.  In other
words, the page processing stops at that point.
 
In all cases, I can let the logic fall through to the next level without
having a CFELSE tag.  Or, is it better form to use CFELSE?  Which is
generally more-readable?
 
Example:
 
========
<cfif true>
    do true logic here
 
    <cfif true>
        do true logic here
 
        <cflocation>
    </cfif>
 
    <cfinclude>
    <cfabort>
</cfif>
 
<cfinclude>
<cfabort>
========
 
Could also be written as:
 
========
<cfif true>
    do true logic here
 
    <cfif true>
        do true logic here
 
        <cflocation>
    <cfelse>
        <cfinclude>
        <cfabort>
    </cfif>
<cfelse>
    <cfinclude>
    <cfabort>
</cfif>
========
 
Michael Dawson
Manager of Web Applications
Office of Technology Services
University of Evansville
 
Each time you send an email message with a background pattern
or loud background color, an endangered tree dies.
Please help us save a tree. Just say "NO" to email backgrounds.
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325074
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to