User Tools

Site Tools


crpl:docs:gt

<- CRPL reference <- Comparators

gt

ArgumentsResultNotation
Two Valuestrue or false (1 or 0) n1 n2 – b1

Description

Top two items are popped from the stack and 'Greater Than' comparison is performed. 0 or 1 is pushed back to the stack where 1 indicates true.

See programming note for comparing unlike types

Examples

# Compares numbers to 50. 
# Pointless, in programming, but here to illustrate a point. 
100 50 gt 		# True, 100 is greater than 50 
45 50 gt 		# False, 45 is not greater than 50 
50 50 gt 		# False, 50 is not greater than 50
A B gt
#If A is bigger than B, TRUE
#Otherwise FALSE
crpl/docs/gt.txt · Last modified: 2021/02/05 11:43 by Karsten75