Assignv
From AGI Wiki
Revision as of 14:34, 2 August 2013 by Andrew Branscom (talk | contribs) (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...")
The assignv command sets the value of a variable to the value of another variable.
assignv(variableA, variableB);
variableA = variableB;
When this command is issued, the value of variableA
is set to the value of variableB
.
Parameters
variableA:
a variable,v0-v255
, which should receive the value ofvariableB
variableB:
a variable,v0-v255
, whose value should be assigned tovariableA
Possible errors
None known.
Examples
The following example assigns the value of variable v30
to variable v200
, using the longhand syntax:
assignv(v200, v30);
The next example assigns the value of variable v98
to variable v207
, using the shorthand syntax:
v207 = v98;
See also
assignn
Sources
- AGI Studio help file