Functions, Operators, Switch Cases and Truth Tables : Switch Cases : Ada Language : Syntax

Syntax
case_ada <expression> is
when_ada <key_value> [| <key_value>] => : <actions>;
...
when_ada <key_value> [| <key_value>] => : <actions>;
when_ada others => <actions>;
end case_ada;
 

In this syntax:

<expression> - The data-item (DI) of the expression type. This can be Integer, Bit-Array, or Enumerated.
<key_value> - The value. This can be a constant literal, enumerated value, constant integer DI, or a choice list.
<actions> - The Rational Statemate actions.
Note:
break; cannot be used as one of the actions.