Text
EN
Version 4.60
SWITCH/CASE/DEFAULT
Description
Syntax:
SWITCH(Test)
{
CASE("A")
{
}
CASE("BB")
{
}
}
or
SWITCH(Test)
{
CASE("A")
{
}
CASE("BB")
{
}
DEFAULT
{
}
}
The result of the SWITCH expression is compared with the results of the CASE expressions (using the operator ‚=‘; see there).
At the first CASE expression that matches the SWITCH expression, execution branches to the associated execution section.
The following CASE expressions are no longer checked.
If no CASE expression matches the SWITCH expression, the DEFAULT execution section is executed, if present.
A maximum of 8062 CASE conditions can be defined within a SWITCH statement.
Note : This text was machine-translated and may contain inaccuracies.
