User Tools

Site Tools


prpl:and

This is an old revision of the document!


<- PRPL reference <- Logical Operators

and

ArgumentsResultNotation
bool bool bool [bool bool- bool]

Description

Pops two items from the stack and treats them as TRUE/FALSE (0/1 or Boolean) values. If they are both TRUE, 1 is pushed to the stack. Otherwise, 0 is pushed to the stack.

Examples

if (1 and (true)) 
	trace("1 and true are both true") 
endif 
prpl/and.1480721628.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1