Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.1.0.000
    • Labels:
      None

      Description

      ATM CFML is only supporting null halfway and this can be a pain in the ass.
      you can store null in a struct/array/query and in some situation is does return the value in other it throws a error, in addition there is no literal for null.

      Example code that should work:
      <cfset y=null>
      <cf_valueEquals left="#isNull(variables.y)#" right="#true#">
      <cf_valueEquals left="#variables.y == null#" right="#true#">
      <cf_valueEquals left="#variables['y'] == null#" right="#true#">
      <cf_valueEquals left="#y == null#" right="#true#">
      <cf_valueEquals left="#isDefined('variables.y')#" right="#true#">
      <cf_valueEquals left="#structKeyExists(variables,'y')#" right="#true#">

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                micstriit Michael Offner
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: