Link to home
Start Free TrialLog in
Avatar of whaleyk
whaleyk

asked on

Cleaning up old conditional code, how to condense this .....

Hello experts.  What's the most efficient way to re-write these "if statements"?
Thanks for your help,
K


<cfif CF_TEMPLATE_PATH EQ "D:\DIR1\DIR2\index.cfm" OR CF_TEMPLATE_PATH EQ "D:\DIR3\DIR4\index.cfm">
    <cfif NOT StructKeyExists(URL,"sectionID") AND NOT StructKeyExists(URL,"contentID") AND NOT StructKeyExists(URL,"ID")>
       DO SOMETHING
     <cfelse>
      DO SOMETHING ELSE
     </cfif>
</cfif>
ASKER CERTIFIED SOLUTION
Avatar of Plucka
Plucka
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial