User Tools

Site Tools


4rpl:commands:gt

Index
Comparators

gt

5 gt (4)

Description

The first item on the stack is compared to the second item on the stack. Both items are removed from the stack. If the first item is greater than the second, True (1) is pushed to the stack. If not, False (o) is pushed to the stack.

Note: See Data Types for comparison between dissimilar types and type conversion.

Examples

# Warp notation
if (42 gt (1))
    trace("42 is greater than 1")
endif

Index

4rpl/commands/gt.txt · Last modified: 2021/03/28 11:37 by Karsten75