User Tools

Site Tools


crpl:docs:or

<- CRPL reference <- Logical Operators

or

or

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: 2022/07/01 14:45 by Karsten75