Function Entry: EVAL
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: EVAL
Name
eval
Class
Function
Syntax
(eval expr)
Arguments and Values
expr: any AutoLISP expression. Documented value types are integer, real, string, list, symbol, ename, T, or nil.
Description
Returns the result of evaluating an AutoLISP expression. Enables dynamic evaluation, including resolving a symbol bound through a value-cell to its current value.
Return Values
Returns the value produced by evaluating expr. The return type follows the expression type and is one of integer, real, string, list, ename, T, or nil.
Side Effects
Side effects are those of the evaluated expression.
Examples
Given (setq a 123) and (setq b 'a):
(eval 4.0)returns4.0.(eval (abs -10))returns10.(eval a)returns123.(eval b)returns123, becausebholds the symbolawhich itself names the value123.
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [eval (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-D9B3E6CC-A982-4040-AE6E-6FD63D6C54D0.htm)
- Status: documented (Phase 3 body fill).