Tpaul_10
asked on
CFIF
Experts,
Based on the code below, If my varibale (isMyVariable) is true then I need to use one CFIF, if not other CFIF. Here is what I am doing and throws me the
Context validation error for the cfelse tag.
The tag must be nested inside a CFIF tag.
What is the best way to hanlde thing?
<cfif isMyVariable EQ "True">
<cfif ((variables.Variable1 NEQ Myquery1.Column1) AND (variables.Variable2 NEQ Myquery2.Column1))>
<cfelse>
<cfif ((variables.Variable1 NEQ Myquery3.Column1) AND (variables.Variable2 NEQ Myquery4.Column1))>
</cfif>
My Other Code for the big CFIF
<cfelse>
Rest of the code
</cfif>
Thanks and appreciate your quick help.
Based on the code below, If my varibale (isMyVariable) is true then I need to use one CFIF, if not other CFIF. Here is what I am doing and throws me the
Context validation error for the cfelse tag.
The tag must be nested inside a CFIF tag.
What is the best way to hanlde thing?
<cfif isMyVariable EQ "True">
<cfif ((variables.Variable1 NEQ Myquery1.Column1) AND (variables.Variable2 NEQ Myquery2.Column1))>
<cfelse>
<cfif ((variables.Variable1 NEQ Myquery3.Column1) AND (variables.Variable2 NEQ Myquery4.Column1))>
</cfif>
My Other Code for the big CFIF
<cfelse>
Rest of the code
</cfif>
Thanks and appreciate your quick help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.