User Tools

Site Tools


crpl:docs:and

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:and [2013/01/14 14:01] – created virgilwcrpl:docs:and [2022/07/01 14:43] (current) – reformat Karsten75
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#logical_operators|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 === 
 +<code 4RPL> 
 +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</code>  
crpl/docs/and.1358190080.txt.gz · Last modified: 2014/10/01 15:02 (external edit)