Type in the words(s) to search for:

    Mark results
      Userbooster Help

      || (Logical Or)

      The logical or operator:

      • Performs the logical or operation if the first operand is of boolean, numeric, floating or date-time type. It throws an exception when the second operand is of not appropriate type.
      • Evaluates the union if both operands are strings or the first operand is an array.
      • Throws an exception otherwise.

      Example

      var i = 0 || 1;