Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Adam Cameron
Adam CameronPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 30 July 2015 at 07:56
Updated 17 March 2021 at 12:01
Resolved 7 December 2015 at 10:45
result = false ?: "default";
Expected:
default
Actual:
Lucee 5.0.0.49 Error (template) Message left operant of the Elvis operator has to be a variable or a function call Stacktrace The Error Occurred in C:\apps\lucee\5\express\webapps\ROOT\shared\cfml\language\operators\elvis\falseNull.cfm: line 4 2: // falseNull.cfm 3: 4: result = false ?: "default"; 5: 6: </cfscript>
The left operanD (note spelling) should be a boolean expression. It does not need to be "a variable or a function call".