and

From RPTools Wiki
Revision as of 23:40, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page And to and: Converting page titles to lowercase)
Jump to navigation Jump to search

and() Function

This function performs a logical AND comparison between all of the passed numeric values. A value of 0 is false and all non-zero values are treated as true

Usage

and(n1, n2, ...)

Parameters

  • n1 - Number
  • n2 - Number
  • n3+ - Number

Example

[r: and(1,1)]
[r: and(1,1,0)]

Returns:

1
0

See Also