Operators > , (comma)

, (comma)

Syntax

expression1, expression2

Arguments

expression Any number, variable, string, array element, or other data.

Description

Operator; instructs Flash to evaluate expression1, then expression2, and return the value of expression2. This operator is primarily used with the for loop statement.

Player

Flash 4 or later.

Example

The following code sample uses the comma operator:

var a=1, b=2, c=3;

This is equivalent to writing the following:

var a=1;
var b=2;
var c=3;