tracker issue : CF-4038422

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

[elvis] Logic error with ?: operator

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 08/18/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 2

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 22, 2019 using build 2016.0.01.298513
Problem Description:
?: is pants


Steps to Reproduce:
<cfscript>
result = ( true == true ) ?: 'SHOULD NOT BE THIS VALUE';

writeOutput(result); // but it is
</cfscript>

Actual Result:
SHOULD NOT BE THIS VALUE

Expected Result:
true

Any Workarounds:
Don't use ?: operator

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

Watson Bug ID:	4038422

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

..................................
Vote by External U.
6241 | September 30, 2015 04:23:19 PM GMT
+1 ......................
Vote by External U.
6242 | December 05, 2015 03:58:26 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31149 | August 22, 2019 09:31:20 AM GMT