Spaces in AutoLISP Code

AutoCAD AutoLISP & Visual LISP

 
Spaces in AutoLISP Code
 
 
 

In AutoLISP, multiple spaces between variable names, constants, and function names are equivalent to a single space. The end of a line is also treated as a single space.

The following two expressions produce the same result:

(setq test1 123 test2 456) 
(setq
    test1 123
    test2 456
)