Sonolus Wiki

SwitchIntegerWithDefault

Conditionally execute a branch.

Arguments

ArgumentDescription
discriminantDiscriminant
consequent_0Branch 0 consequent
consequent_1Branch 1 consequent
consequent_2Branch 2 consequent
......
consequent_defDefault consequent

Return

consequent_n of branch where discriminant equals to n, or consequent_def if no branch matches.