I am working with some legacy code and I am stuck on evaluating a ColdFusion if statement with multiple conditions. What I am looking to do is this:
<cfif condtion1 eq'yes'>
Display this text
</cfif>
<cfif condition2 eq'yes' && condition1 eq'no'>
display different text
</cfif>
<cfif condition2 eq'yes' && condition1 eq'yes'>
display same text as second if statement
</cfif>
If the first statement is true, it functions properly. If the second statement is true, if functions properly.
If the third statement is true, it is displaying the text from the first statement when it should be displaying the text from the second statement.
<cfif condtion1 eq'yes'>
Display this text
</cfif>
<cfif condition2 eq'yes' && condition1 eq'no'>
display different text
</cfif>
<cfif condition2 eq'yes' && condition1 eq'yes'>
display same text as second if statement
</cfif>
If the first statement is true, it functions properly. If the second statement is true, if functions properly.
If the third statement is true, it is displaying the text from the first statement when it should be displaying the text from the second statement.