Lindirectn

From AGI Wiki
Jump to navigationJump to search

The lindirectn command assigns a numerical value to a variable indirectly.

Syntax

lindirectn(var vA, byt B);
*vA = B;

Remarks

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

Possible Errors

None.

Example

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

Technical Information

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

See Also

Mathematical Commands
lindirectv
rindirect