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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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 of variableB
   variableB: a variable, v0-v255, whose value should be assigned to variableA

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