User Tools

Site Tools


crpl:docs:and

<- CRPL reference <- Logical Operators

and

<-bool1 <-bool2 and ->boolResult

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

TRUE TRUE and Trace     #prints out 1 (TRUE) to the tracelog
TRUE FALSE and Trace    #prints out 0 (FALSE) to the tracelog
FALSE TRUE and Trace    #prints out 0 (FALSE) to the tracelog
FALSE FALSE and Trace   #prints out 0 (FALSE) to the tracelog
crpl/docs/and.txt · Last modified: 2022/07/01 14:43 by Karsten75