and: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=and |proposed=false |trusted=false |description= This function performs a logical '''AND''' comparison between all of the passed numeric values. A value...")
 
m (Conversion script moved page and to And without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:36, 9 February 2023

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