Details

    • Type: Bug
    • Status: Deployed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.49, 4.5.2.001
    • Fix Version/s: 4.5.3.002
    • Labels:
      None

      Description

      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".

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                da_cameron Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: