User Tools

Site Tools


prpl:not

<- PRPL reference <- Logical Operators

not

ArgumentsResultNotation
bool bool [bool- bool]

Description

Pops one item from the stack, treats it as a boolean value, 'nots' it, and pushes 0 or 1 back to the stack. If the item is TRUE, 0 is pushed to the stack. If the item is FALSE, 1 is pushed to the stack.

Examples

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