User Tools

Site Tools


crpl:docs:lte

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Comparators

lte

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

Description

Top two items are popped from the stack and 'Less Than or Equal' 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 lte 		# False, 100 is not less than 50 
45 50 lte 		#True 45 is less than 50 
50 50 lte 		# true, 50 is equal to 50
A B lt
If A is less than B, TRUE
If A is the same as B, TRUE
Otherwise FALSE
crpl/docs/lte.1395699169.txt.gz · Last modified: 2014/10/01 15:02 (external edit)