else
Availability
Flash Lite 1.0.
Usage
if (condition){
t-statement(s);
} else {
f-statement(s);
}
Parameters
An expression that evaluates to
condition
The instructions to execute if the condition evaluates to
t-statement(s)
An alternative series of instructions to execute if the condition evaluates
f-statement(s)
to
.
false
Description
Statement; specifies the statements to run if the condition in the
to
.
false
Example
The following example shows the use of the
example would include code to take some action based on the condition.
currentHighestDepth = 1;
if (currentHighestDepth == 2) {
//trace ("currentHighestDepth is 2");
} else {
//trace ("currentHightestDepth is not 2");
}
See also
if
or
.
true
false
if
statement with a condition. An actual
else
.
true
statement evaluates
else
69
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?