Hey, I hope you can help - I am so stumped on this one.
I have a comparison where I extract the value of a query field dynamically but it does not work. Weird error: < marks the beginning of a ColdFusion tag.Did you mean LT or LTE? This is soooo unrelated it seems.
This Works
This does not work
I have tried plying with toString() and evaluate() etc. - still no go.
What can you recommend?
Thanks,
Michael42
I have a comparison where I extract the value of a query field dynamically but it does not work. Weird error: < marks the beginning of a ColdFusion tag.Did you mean LT or LTE? This is soooo unrelated it seems.
This Works
Code:
<cfoutput query="qry1">
[b]<cfif evaluate("qry1." & TableValueField) EQUAL "1001">[/b]
<font color="red">sOptionValue: #evaluate("qry1." & TableValueField)#</font><br>
<cfelse>
<font color="green">sOptionValue: #evaluate("qry1." & TableValueField)#</font><br>
</cfif>
</cfoutput>
This does not work
Code:
<cfoutput query="qry1">
[b]<cfif toString(evaluate("qry1." & TableValueField)) EQUAL toString(evaluate(CurrentFieldValue))>[/b]
<font color="red">sOptionValue: #evaluate("qry1." & TableValueField)#</font><br>
<cfelse>
<font color="green">sOptionValue: #evaluate("qry1." & TableValueField)#</font><br>
</cfif>
</cfoutput>
I have tried plying with toString() and evaluate() etc. - still no go.
What can you recommend?
Thanks,
Michael42