Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

If assignment or append statements must be executed conditionally, the following syntax can be used:

Syntax
Code Block
languagenone
 set object = expression if booleanGuardExpression; 
 append object to arrayExpression if booleanGuardExpression;
Semantics

The set and append statements are applied only if the boolean guard expression evaluates to true.

SubstitutablesobjectAny object name.
expressionA valid expression.
arrayExpressionAn expression evaluating to an array.
booleanGuardExpressionAny expression evaluating to a boolean.
Examples
Code Block
languagenone
 set x = "abc" if y > 10;
rp
Panel
titleRelated Pages:

Basics of the Action Script Language:

Children Display
pageBasics of the Action Script Language