Assigns a formula to a hot variable or Window.
variable := <formula>
variable |
- |
A hot variable or Window |
<formula> |
- |
Any formula evaluating to a scalar, series, table or string. |
Nothing, the formula is assigned to the hot variable.
a := 5
b := a * a
b
returns 25.
a := 10
b
returns 100.
W1 := gnorm(1000,1)
W2 := integ(W1)
assigns the formulae to W1 and W2.
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.