Lindirectv
From AGI Wiki
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:
<syntaxhighlight lang="agi"> v50 = 20; v51 = 75; v52 = 99; lindirectv(v50, v51); [ now v20 = 75
- v20 = v52; [ now v75 = 99
</syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 9 (0x09 hex) |