Lindirectv: Difference between revisions

From Sierra WikiNew
Jump to navigationJump to search
m (1 revision imported)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:07, 3 June 2024

The lindirectv command assigns the value of one variable to another indirectly.

Syntax

lindirectv(var vA, var vB);
*vA = vB;

Remarks

This command is referred to as "left indirection by value". The value of variable vC (where C is the value of vA) is set to vB.

Possible Errors

None.

Example

Code:
v50 = 20;
v51 = 75;
v52 = 99;
lindirectv(v50, v51);  [ now v20 = 75
*v20 = v52;            [ now v75 = 99

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 9 (0x09 hex)

See Also

Mathematical Commands
lindirectn
rindirect