You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Current »
If assignment or append statements must be executed conditionally, the following syntax can be used:
set object = expression if booleanGuardExpression; append object to arrayExpression if booleanGuardExpression;
The set and append statements are applied only if the boolean guard expression evaluates to true.
object
expression
arrayExpression
booleanGuardExpression
set x = "abc" if y > 10;
Basics of the Action Script Language: