User Tools

Site Tools


crpl:docs:gte

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:gte [2013/01/14 14:00] – created virgilwcrpl:docs:gte [2017/09/06 09:18] (current) – Test Kajacx highlight mod Karsten75
Line 1: Line 1:
-TODO+<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#comparators|Comparators]] 
 +=====  gte  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +|Two Values|true or false (1 or 0) |''n1 n2 -- b1 ''
 + 
 + 
 +=== Description === 
 +Top two items are popped from the stack and 'Greater Than or Equal' comparison is performed.  
 +0 or 1 is pushed back to the stack where 1 indicates true. 
 + 
 +See [[crpl:docs:eq#comparing_unlike_types|programming note]] for comparing unlike types 
 + 
 +=== Examples === 
 +<code prpl> 
 +# Compares numbers to 50.  
 +# Pointless, in programming, but here to illustrate a point.  
 +100 50 gte # True, 100 is greater than 50  
 +45 50 gte # False, 45 is not greater than 50  
 +50 50 gte # True, 50 is equal to 50 
 +</code>  
 + 
 +<code prpl> 
 +A B lt 
 +If A is bigger than B, TRUE 
 +If A is the same as B, TRUE 
 +Otherwise FALSE 
 +</code> 
crpl/docs/gte.1358190008.txt.gz · Last modified: 2014/10/01 15:02 (external edit)