Switch
Switch[e, case1, val1, case2, val2, ...]
attempts to match e
with the cases in order. If a match is found, returns the corresponding value.
Attributes[Switch] := {HoldRest, Protected, ReadProtected}
Switch[e, case1, val1, case2, val2, ...]
attempts to match e
with the cases in order. If a match is found, returns the corresponding value.
Attributes[Switch] := {HoldRest, Protected, ReadProtected}