Loading...
 

Variable (value assignment)

Variable (value assignment)

-> varName

Stack
Stack Position Description
Stack(In) Top a value
Stack(Out) Top -

Each value on the stack can be assigned to a variable. The sequence -> variableName is to be understood as a single instruction; -> wants to be understood as a symbol for assignment (see example).

Stack
Stack Position Description
Stack(In) Top ]
Top 1 Value n
. . . . . .
Top-n value 1
Top n-1 [
Stack(Out) -

A vector can also be assigned to a variable.

Assignments within a transaction are cancelled when the transaction is aborted due to an error or a cancel statement (the variable is returned to the value it had before the transaction started).
Exception: local variable