tracker issue : CF-4182068

select a category, or use search below
(searches all categories and all time range)
Title:

"EQ" works but not "=="

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): / ext-user (Anit Kumar Panda)

Created: 08/18/2016

Components: General Server

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: CF2016_Update2 /

Priority/Frequency: Minor / Very few users will encounter

Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All

Vote Count: 0

Problem: "EQ" works but not "==" 

Method:
<cfscript>
                a = randRange(1,2);
                b = randRange(1,2);
 
                writeOutput("Result = #a == b#"); // == no good; EQ works fine
</cfscript>

Result: Gives error:-
Invalid CFML construct found on line 5 at column 34.
ColdFusion was looking at the following text:
=
The CFML compiler was processing:
•	An expression that began on line 5, column 31.
The expression might be missing an ending #, for example, #expr instead of #expr#.
•	An expression beginning with /", on line 5, column 21.This message is usually caused by a problem in the expressions structure.
•	An expression beginning with writeOutput, on line 5, column 9.This message is usually caused by a problem in the expressions structure.
•	A script statement beginning with writeOutput on line 5, column 9.
•	A cfscript tag beginning on line 1, column 2.


Expected: It should work

Workaround: Use "EQ" instead of  "==" 

Additional info: - Same issue with CF2016/11/10/9.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4182068

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments: