or

Declaration

or (item_1, item_2 : BOOLEAN): BOOLEAN

Description

Returns whether either item_1, item_2 or both are true.

See Also

and
not
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