interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / skills / omega-encoding / examples / pitfall_elif.om

14 lines · 315 bytes Raw Blame History
1note There is no elif. A line NAME VALUE assigns, so elif eq k 1 makes a local bool named elif
2note and the next line runs for every k. pick 0 should be 10 and returns 20 (exit 20).
3fn pick k ulong to ulong
4r = ulong 0
5if eq k 0
6r = ulong 10
7elif eq k 1
8r = ulong 20
9end
10ret r
11end
12fn main to int
13ret int pick 0
14end