(Conditional); (Decrement) - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

?: (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

Advertisement

Table of Contents
loading
Need help?

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?

Subscribe to Our Youtube Channel

Table of Contents