select
select keyword
Syntax
select variable case value1 then instructions 1 case value2 then instructions 2 ... case valuen then instructions n case {valueC1 valueC2 valueCN} intructions C [else instructions] end
Arguments
- variable
variable which value to be analyzed.
- value1, ..., valuen
values of
variable
for which there are appropriate instruction blocksinstructions 1, ..., instructions n
.- valueC1, ..., valueCN
like
value1, ..., valuen
but an OR is applied on eachvariable == valueCx
. It is useful to group cases with same instruction.- instructions
block of valid instructions.
Examples
See also
History
Version | Description | ||
6.0.0 |
|
2024.0 |
|
Report an issue | ||
<< return | Control flow | then >> |