cond

HC Conditional execution cond
case throw

result cond clist (library procedure)


command or operation. clist is a list of [condition instructions] lists. result is the value which instructions output. But donīt use the logo word output in instructions because that would end the cond caller.

Example:

cond [[false 1] [true 2] [else 3]]		;2  ;-)
cond [[1==2 1234][3==3 4321][else [Hallo]]]		;4321  ;-)

case throw