Difference between revisions of "Lindirectn"
From AGI Wiki
Jump to navigationJump to search (Created page with "The '''lindirectn''' command assigns a numerical value to a variable indirectly. == Syntax == lindirectn(var vA, byt B);<br /> *vA = B; ==...") |
(No difference)
|
Latest revision as of 20:55, 9 April 2019
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) |