User Tools

Site Tools


4rpl:commands:or

Index

or

OR

Description

Pops two items from the stack, treats them as boolean values, ‘ors’ them, and pushes 0 or 1 back to the stack. If one or both items evaluate to True, it returns TRUE (1) to the stack. If both items evaluate to FALSE, FALSE (0) is returned to the stack.

Examples

if (1 or (false))
    trace("1 or false is true")
endif

Index

4rpl/commands/or.txt · Last modified: 2021/01/08 11:01 by 127.0.0.1