I wonder if some of you have figured out a way to change a condition dynamically.
For instance, for the following condition statement,
/*** existing variable condition expressions: condi1, condi2
potential variable: condiTran ( a transient variable OR optional condition evaluation, just for condi3 )
condiTran default value of 1=1
potential variable: condi3
Thus, condi3 variable expression becomes available, for instance, “rain is true” ( of which “rain” is a variable )
Then, the following code:
<cfif condi1 AND condi2 AND condiTran> do this or that </cfif>
would be executed as:
<cfif condi1 AND condi2 AND rain is true> do this or that </cfif>
<cfif condi1 AND condi2 AND 1=1> do this or that </cfif>
The thought was, 1=1 is always true, thus AND 1=1 should work but not. Thoughts?