eval

AutoCad AutoLISP Functions

 
eval
 
 
 

Returns the result of evaluating an AutoLISP expression

(eval expr) 

Arguments

expr

The expression to be evaluated.

Return Values

The result of the expression, after evaluation.

Examples

First, set some variables:

Command: (setq a 123)

123

Command: (setq b 'a)

A

Now evaluate some expressions:

Command: (eval 4.0)

4.0

Command: (eval (abs -10))

10

Command: (eval a)

123

Command: (eval b)

123