Which
yields
expr1
ifcond1
evaluates toTrue
,expr2
ifcond2
evaluates toTrue
, etc.
Examples
If no test yields True
, Which
returns Null
:
If a test does not evaluate to True
or False
, evaluation stops
and a Which
expression containing the remaining cases is returned:
Which
must be called with an even number of arguments:
Implementation status
- ✅ - full supported