Copying variables: CopyVar

### 4.4.7 Copying variables: CopyVar

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.

Input:

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

Output:

c

then:

b

Output:

5

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

c:=10:;
b

Output:

10