Calculates the logical NOT operation on one or more values. When more than one value is inputted, it applies NOT to each and then returns true only if all values are false.

const x = Chalkboard.bool.NOT(false); // Returns true
const y = Chalkboard.bool.NOT(true, false, false); // Returns false
const z = Chalkboard.bool.NOT(false, false, false); // Returns true
  • Parameters

    • ...vals: (boolean | 0 | 1)[]

      One or more values.

    Returns boolean | 0 | 1