?: (conditional)
Availability
Flash Lite 1.0.
Usage
expression1 ? expression2 : expression3
Operands
An expression that evaluates to a Boolean value, usually a comparison
expression1
expression, such as
.
x < 5
,
Values of any type.
expression2
expression3
Description
Operator; instructs Flash Lite to evaluate
, and if the value of
is
expression1
expression1
, it returns the value of
; otherwise, it returns the value of
.
true
expression2
expression3
Example
The following example assigns the value of variable
to variable
because
x
z
expression1
evaluates to
:
true
x = 5;
y = 10;
z = (x < 6) ? x: y;
trace (z);// output: 5
–– (decrement)
Availability
Flash Lite 1.0.
Usage
––expression
expression––
Operands
None.
86
Flash Lite Operators
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?