# UNDOCTL System Variable
[GstarCAD 2015](../../Index.md) → [System Variables](../%28System%20Variables%29.md) → [U](%28U%29.md)
| | |
| --- | --- |
| (Read-only) | |
| Type | Integer |
| Saved-in | Not saved |
| Initial value | 5 |
| Range | Above 0 |
Indicates the state of the Auto, Control, and Group options of the UNDO command. The setting is stored as the sum of the following values:
0 UNDO is turned off
1 UNDO is turned on
2 Only one command can be undone
4 Auto is turned on
---
## Other versions with matching text
[GstarCAD 8 (2013–2014)](../../../2013/System%20Variables/U/UNDOCTL%20System%20Variable.md)