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...") |
|||
Line 27: | Line 27: | ||
See also | See also | ||
− | + | * [[Assignv|assignv]] | |
Sources | Sources | ||
− | + | * [[AGI Studio]] help file | |
Retrieved from "http://www.agigames.com/agiwiki/index.php/Assignn" | Retrieved from "http://www.agigames.com/agiwiki/index.php/Assignn" |
Revision as of 14:15, 2 August 2013
The assignn command sets the value of a variable to a specified number.
assignn(variable, number);
variable = number;
When this command is issued, the value of variable
is set to number.
Parameters
variable:
a variable,v0-v255
, which should receive the value of numbernumber:
a number, 0-255, which should be assigned tovariable
Possible errors
None known.
Examples
The following example assigns the number 22 to variable v200
, using the longhand syntax:
assignn(v200, 22);
The next example assigns the number 35 to variable v207
, using the shorthand syntax:
v207 = 35;
See also
Sources
- AGI Studio help file
Retrieved from "http://www.agigames.com/agiwiki/index.php/Assignn"