Difference between revisions of "Assignv"
From AGI Wiki
Jump to navigationJump to search (Created page with "The assignv command sets the value of a variable to the value of another variable. <code>assignv(variableA, variableB);</code> <code>variableA = variableB;</cod...") |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | The assignv command | + | The '''assignv''' command assigns the value from one [[variable]] to another. |
− | + | == Syntax == | |
− | < | + | assignv([[variable|var]] vA, [[variable|var]] vB);<br /> |
+ | vA = vB; | ||
− | + | == Remarks == | |
− | + | None. | |
− | + | == Possible Errors == | |
− | |||
− | + | None. | |
− | + | == Example == | |
− | == | + | <div class="CodeBlockHeader">Code:</div> |
+ | <syntaxhighlight lang="agi"> | ||
+ | assignv(v50, v51); | ||
+ | v50 = v51; | ||
+ | </syntaxhighlight> | ||
− | + | == Technical Information == | |
− | + | {| border="1" cellpadding="2" | |
+ | | style="background-color: #efefef" width="200" | '''Required Interpreter Version:''' | ||
+ | | width="175" | Available in all AGI versions. | ||
+ | |- | ||
+ | | style="background-color: #efefef" | '''Byte-Code Value:''' | ||
+ | | 4 (0x04 hex) | ||
+ | |} | ||
− | + | == See Also == | |
− | < | + | [[Mathematical Commands]]<br /> |
+ | '''[[assignn]]'''<br /> | ||
− | + | [[Category:Commands]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category: | ||
[[Category:Mathematical Commands]] | [[Category:Mathematical Commands]] |
Latest revision as of 17:13, 23 March 2019
The assignv command assigns the value from one variable to another.
Syntax
assignv(var vA, var vB);
vA = vB;
Remarks
None.
Possible Errors
None.
Example
Code:
<syntaxhighlight lang="agi"> assignv(v50, v51); v50 = v51; </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 4 (0x04 hex) |