Lindirectn

From AGI Wiki
Revision as of 20:55, 9 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''lindirectn''' command assigns a numerical value to a variable indirectly. == Syntax == lindirectn(var vA, byt B);<br /> *vA = B; ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

<syntaxhighlight lang="agi"> v50 = 20; lindirectn(v50, 75); [ now v20 = 75

  • v20 = 99; [ now v75 = 99

</syntaxhighlight>

Technical Information

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

See Also

Mathematical Commands
lindirectv
rindirect