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,"secti onID") AND NOT StructKeyExists(URL,"conte ntID") AND NOT StructKeyExists(URL,"ID")>
DO SOMETHING
<cfelse>
DO SOMETHING ELSE
</cfif>
</cfif>
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,"secti
DO SOMETHING
<cfelse>
DO SOMETHING ELSE
</cfif>
</cfif>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.