User Tools

Site Tools


crpl:docs:or

<- CRPL reference <- Logical Operators

or

ArgumentsResultNotation
Two items on the stackThe conditional OR of the two arguments b1 b2 – b3

Description

Pops two items from the stack, treats them as boolean values, 'ors' them, and pushes 0 or 1 back to the stack.

If either items are TRUE, or both are TRUE, it returns TRUE to the stack. If both items are FALSE, FALSE is returned to the stack.

Examples

TRUE  TRUE  or Trace   #prints out 1 (TRUE) to the tracelog
TRUE  FALSE or Trace   #prints out 1 (TRUE) to the tracelog
FALSE TRUE  or Trace   #prints out 1 (TRUE) to the tracelog
FALSE FALSE or Trace   #prints out 0 (FALSE) to the tracelog
crpl/docs/or.txt · Last modified: 2021/02/05 11:43 by Karsten75