User Tools

Site Tools


crpl:docs:and

This is an old revision of the document!


~~DISCUSSION~~ <- 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.1404859128.txt.gz · Last modified: 2014/10/01 15:02 (external edit)