Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Assignment Operator (=)

Assigns a value to a variable.

Syntax: JScript Assignment Operator (=)

result = expression

Arguments: JScript Assignment Operator (=)

result

Any variable.

expression

Any numeric expression.

Remarks: JScript Assignment Operator (=)

As the = operator behaves like other operators, expressions using it have a value in addition to assigning that value into variable. This means that you can chain assignment operators as follows:

j = k = l = 0;

j, k, and l equal zero after the example statement is executed.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.