User Tools

Site Tools


4rpl:commands:and

This is an old revision of the document!


Index

and

<-bool1 and (<-bool2) ->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

if (1 and (true))
    trace("1 and true are both true")
endif

Index

4rpl/commands/and.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)