# (progn statement1 statement2 ...)
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="245"></a>
## (progn statement1 statement2 ...)
---
Evaluate the statement.
---
This function evaluates all the *statement*s and returns the value of the last *statement*.
Generally, the **progn** function works in conjunction with the [if](%28if%20test%20statement1%20-statement2-%29.md) function, since the **if** function is limited to a single **if** and **then** statement. Each **if** function can have only one **then** statement and an **else** statement. The **progn** allows you to have multiple statements evaluated. The value of the last statement is returned.
**Example**
| Code | Returns |
| --- | --- |
| (setq a 9\) (if (\>\= a 8\) (**progn** (setq b a) (setq (1\+ b) ) ) | 10 |
**Tell me about...**
[(apply function list)](%28apply%20function%20list%29.md)
[(defun \[c:\] name (\[arg1 arg2 ...\] / \[local-var1 local-var2 ...\]) expression)](%28defun%20-c-%20name%20%28-arg1%20arg2%20...-%20-%20-local-var1%20local-var2%20...-%29%20expression%29.md)
[(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%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 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28progn%20statement1%20statement2%20...%29.md)