Difference between revisions of "Assignn"
From AGI Wiki
Jump to navigationJump to search (Created page with "The '''assignn''' command sets the value of a variable to a specified number. <code>assignn(variable, number); variable = number;</code> When this command is issued, the val...") |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''assignn''' command | + | The '''assignn''' command assigns a numeric value to a [[variable]]. |
− | + | == Syntax == | |
− | |||
− | + | assignv([[variable|var]] vA, [[number|byt]] B);<br /> | |
+ | vA = B; | ||
− | == | + | == Remarks == |
− | + | None. | |
− | |||
− | ==Possible | + | == Possible Errors == |
− | None | + | None. |
− | == | + | == Example == |
− | + | <div class="CodeBlockHeader">Code:</div> | |
+ | <syntaxhighlight lang="agi"> | ||
+ | assignv(v50, 75); | ||
+ | v50 = 75; | ||
+ | </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:''' | ||
+ | | 3 (0x03 hex) | ||
+ | |} | ||
− | + | == See Also == | |
− | + | [[Mathematical Commands]]<br /> | |
+ | '''[[assignv]]''' | ||
− | + | [[Category:Commands]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category: |
Latest revision as of 20:20, 23 March 2019
The assignn command assigns a numeric value to a variable.
Syntax
assignv(var vA, byt B);
vA = B;
Remarks
None.
Possible Errors
None.
Example
Code:
<syntaxhighlight lang="agi"> assignv(v50, 75); v50 = 75; </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 3 (0x03 hex) |