Sample: Fixing Control.io
[io/quag.git] / samples / misc / Control.io
blob048c64a1656007dc7558e2f22c4da46324bb3354
1 // example of implementing control structures
3 myif := method(condition,
4 index := if(condition, 1, 2)
5 call evalArgAt(index)
8 myif(19 > 5,
9 writeln("19 > 5. Correct.")
11 writeln("19 > 5. Incorrect.")