Symbols > , (comma) |
, (comma)
comma
Availability
Flash Player 4.
Usage
expression1,expression2
Parameters
None.
Returns
Nothing.
Description
Operator; evaluates expression1, then expression2, and returns the value of expression2. This operator is primarily used with the for loop statement.
Example
The following code sample uses the comma operator:
var a=1, b=2, c=3;
This is equivalent to writing the following code:
vara=1;varb=2;varc=3;