User Tools

Site Tools


crpl:docs:lt

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:lt [2013/01/14 19:10] – external edit 127.0.0.1crpl:docs:lt [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
  
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#comparators|Comparators]]
 =====  lt  ===== =====  lt  =====
  
Line 9: Line 10:
 Top two items are popped from the stack and 'Less Than' comparison is performed.  Top two items are popped from the stack and 'Less Than' comparison is performed. 
 0 or 1 is pushed back to the stack where 1 indicates true. 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 === === Examples ===
 <code> <code>
Line 14: Line 18:
 # Pointless, in programming, but here to illustrate a point.  # Pointless, in programming, but here to illustrate a point. 
 100 50 lt # False, 100 is not less than 50  100 50 lt # False, 100 is not less than 50 
-45 50 lt #True 45 is less than 50 +45 50 lt # True45 is less than 50 
 50 50 lt # False, 50 is not less than 50 50 50 lt # False, 50 is not less than 50
 </code>  </code> 
  
 +<code>
 +A B lt
 +If A is less than B, TRUE
 +Otherwise FALSE
 +</code> 
  
crpl/docs/lt.1358190645.txt.gz · Last modified: 2025/02/14 14:56 (external edit)