This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:lte [2013/01/14 19:10] – external edit 127.0.0.1 | crpl:docs:lte [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <- [[crpl: | ||
| ===== lte ===== | ===== lte ===== | ||
| Line 9: | Line 10: | ||
| Top two items are popped from the stack and 'Less Than or Equal' comparison is performed. | 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. | 0 or 1 is pushed back to the stack where 1 indicates true. | ||
| + | |||
| + | See [[crpl: | ||
| + | |||
| === Examples === | === Examples === | ||
| < | < | ||
| # Compares numbers to 50. | # Compares numbers to 50. | ||
| # Pointless, in programming, | # Pointless, in programming, | ||
| - | 100 50 lte # False, 100 is not less than 50 | + | 100 50 lte # False, 100 is more than 50 |
| - | 45 50 lte #True 45 is less than 50 | + | 45 50 lte # True, 45 is less than 50 |
| - | 50 50 let # true, 50 is equal to 50 | + | 50 50 lte # true, 50 is equal to 50 |
| </ | </ | ||
| + | < | ||
| + | A B lte | ||
| + | If A is less than B, TRUE | ||
| + | If A is the same as B, TRUE | ||
| + | Otherwise FALSE | ||
| + | </ | ||