Next: , Previous: , Up: Top  

16 Control Flow

Although not heavily used in k9, control flow statements will still be required occasionally.

$[b;x;y] if else

16.1 cond ⇒ $[b;x;y]

If b is non zero then x else y. x and y are not required to be the same type.




 $[1b;`a`b!(1 2;3 4);`n]
a|1 2
b|3 4