and

Declaration

and (item_1, item_2 : BOOLEAN): BOOLEAN

Description

Returns whether item_1 and item_2 are both true.

See Also

or
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