dest = source
Parameters
| Type | Description | |
| dest | lvalue | user variable |
| source | expression | value to copy |
_result
Not set.
Descriptions
The assignment statement copies the root value of source to the root value of the user variable specified by dest. In most computer languages assignment is an operator that can be used in any expression. In Robot Battle assignment is handled more like a command and can not be used as part of an expression. The assignment statement must be used on a line by itself like a command.
The assignment statement only copies the root value of
source
to the root value of dest. Any array or property elements of source
are not copied. In other words, assignment performs a shallow copy. To copy property and
array elements use the copy
command.
If the dest user variable does not exist, it is automatically created by using it on the left side of the assignment
statement. For more information see the user variables topic.
See Also
initialize, copy, clear, isequal, cleararray, countarray, setarraycount, clearprops, hasprop, countprops, getpropname, user variables