case
, when
, and else
Tags
Creates a switch statement looking for the first when
match for the value passed to
case
.
Description
Creates a switch statement looking for the first when
match for the value passed to
case
. When a match is found, it executes the code within that when
block.
else
can optionally be used to catch cases where there was no matching
when
.
Parameters
None.