Sonolus Wiki

SwitchInteger

Conditionally execute a branch.

Arguments

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

Return

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