User Tools

Site Tools


prpl:or

<- PRPL reference <- Logical Operators

or

ArgumentsResultNotation
bool bool bool [bool bool- bool]

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

if (1 or (false)) 
	trace("1 or false is true") 
endif 
prpl/or.txt · Last modified: 2017/09/24 06:22 by kajacx