### 3.3.7 Copying variables

The CopyVar command copies the contents of one variable into another, without evaluating the contents.

- CopyVar takes two arguments:
  - fromvar, the name of a variable to copy from.
  - tovar, the name of a variable to copy to.
- CopyVar(fromvar,tovar) copies the unevaluated contents of fromvar into tovar.

#### Example

a:=c:; c:=5:; CopyVar(a,b);

c |  |  |  |  |  |  |  |  |  |

then:

b

5 |  |  |  |  |  |  |  |  |  |

Changing the value if c will also change the output of b, since b contains c.

c:=10:; b

10 |  |  |  |  |  |  |  |  |  |