aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / omega-reference / vendor / examples / mistake_compare_operator.om
| 1 | note mistake_compare_operator: conditions are bool values built with eq ne lt le gt ge; > is not a word. Fix: if gt x 0 |
| 2 | fn main to int |
| 3 | x = int 1 |
| 4 | if x > 0 |
| 5 | ret 1 |
| 6 | end |
| 7 | ret 0 |
| 8 | end |