This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:gt [2013/01/14 18:57] – created virgilw | crpl:docs:gt [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TODO | + | |
| + | <- [[crpl: | ||
| + | ===== gt ===== | ||
| + | |||
| + | ^Arguments^Result^Notation^ | ||
| + | |Two Values|true or false (1 or 0) |'' | ||
| + | |||
| + | |||
| + | === Description === | ||
| + | Top two items are popped from the stack and ' | ||
| + | 0 or 1 is pushed back to the stack where 1 indicates true. | ||
| + | |||
| + | See [[crpl: | ||
| + | |||
| + | === Examples === | ||
| + | < | ||
| + | # Compares numbers to 50. | ||
| + | # Pointless, in programming, | ||
| + | 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 | ||
| + | </ | ||