Lindirectv

From Sierra WikiNew
Revision as of 00:07, 3 June 2024 by Andrew Branscom (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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