case
switch/check ( expression ) { case ( comparison expression ) statement; case ... [ else : statement; ]
switch/check ( expression ) { case ( comparison expression ) { statements }; case ... [ else { statements } ]
See switch and check function for detail.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 code |
comparison expression :string |
Values to compare with This parameter is a piece of code typically found on the right-hand side of a comparison with '=' or '<>'. Single values,
ranges (e.g. 3..5), multiple values separated by commas are supported. For text comparison, wildcards are supported if the
string is of type softquoted string.
|
See example in switch and case statements
Do not confuse syntax with C/C++! 'case' is always written with values inside parentheses and without colon behind