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) returns 4.0.
  • (eval (abs -10)) returns 10.
  • (eval a) returns 123.
  • (eval b) returns 123, because b holds the symbol a which itself names the value 123.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.