:= (Hot Variable Assignment)

Purpose:

Assigns a formula to a hot variable or Window.

Syntax:

variable := <formula>

variable

-

A hot variable or Window

<formula>

-

Any formula evaluating to a scalar, series, table or string.

Returns:

Nothing, the formula is assigned to the hot variable.

Example:

a := 5

b := a * a

b

 

returns 25.

Example:

a := 10

b

 

returns 100.

Example:

W1 := gnorm(1000,1)

W2 := integ(W1)

 

assigns the formulae to W1 and W2.

Remarks:

See the = operator to perform a standard variable assignment. Standard variables do not propagate changes.

 

Use () to group multiple statements for a hot variable assignment in an SPL routine. For example:

 

setw1()

{

    W1 := (integ(gnorm(1000,1));label("Test Data"));

}

 

The setw1() routine assigns the formula:

 

integ(gnorm(1000,1));label("Test Data")

 

to Window 1 just as if the formula was entered from the command line.

 

The : and := operators are interchangeable for Window assignments.

 

See == to compare two expressions.

See Also:

=

:

==

Assignment Operators

SETHOTVARIABLE

SETVARIABLE

SETWFORM