# (set 憇ymbol statement)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="259"></a>
## (set 'symbol statement)
---
Assign the statement to the symbol.
---
This function is an assignment function, similar to the [setq](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md) function. **Set** assigns the *statement* argument to *symbol*. The *symbol* should be quoted. When left unquoted, it changes the values of previously assigned symbols.
### Examples
| Code | Returns |
| --- | --- |
| (**set** 'x 56\) | 56 |
| (**set** 'y "Hello") | "Hello" |
| (**set** 'z '(a b c d)) | (A B C D) |
**NOTE** The difference between the **set** function and the **setq** function is that **set** evaluates the *symbol*. The following are equivalent expressions:
(**set** 'i "Me")
(setq i "Me")
**Tell me about...**
[(quote statement)](%28quote%20statement%29.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28set%20%E6%86%87ymbol%20statement%29.md)