not

Declaration

not (item: BOOLEAN): BOOLEAN

Description

Returns the logical negation of item.

See Also

and
or
math functions

Example

script test_boolean is
  -- for all of the boolean functions, there are
  -- appropriate mathematical operators defined,
  -- though it is legal to use the function name
  if a and b then
    -- a and b are both true
  end
  
  if a or b then
    -- either a, b or both are true
  end

  if not b then
    -- b is false
  end
end