User Tools

Site Tools


crpl:docs:and

<- CRPL reference <- Logical Operators

and

ArgumentsResultNotation
Two items on the stackThe conditional AND of the two arguments b1 b2 – b3

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: 2021/02/05 11:43 by Karsten75