A-C > case |
case
case, condition, switch
Availability
Flash Player 4.
Usage
caseexpression:statements
Parameters
expression Any expression.
statements Any statements.
Returns
Nothing.
Description
Keyword; defines a condition for the switch action. The statements in the statements parameter execute if the expression parameter that follows the case keyword equals the expression parameter of the switch action using strict equality (===)
If you use the case action outside of a switch statement, it produces an error and the script doesn't compile.
See also
switch, default, break, === (strict equality)