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...")
 
Line 28: Line 28:
 
==See also==
 
==See also==
  
    [[Assignn|assignn]]
+
* [[Assignn|assignn]]
  
 
==Sources==
 
==Sources==

Revision as of 14:34, 2 August 2013

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

Sources