Special Form Entry: AND
← Prev | ↑ Chapter | Next → | Index | Symbols
Special Form Entry: AND
Name
and
Class
Special Form
Syntax
(and [expr ...])
Arguments and Values
- zero or more expressions
Description
Computes the logical conjunction of a sequence of expressions.
Evaluation Rules
- expressions are evaluated left to right
- evaluation stops as soon as one expression evaluates to nil
- if no expression evaluates to nil, all expressions are evaluated
Return Values
Vendor summary documentation describes and as returning the logical AND of the expressions.
The exact return-value convention still needs dedicated per-function confirmation in this draft and therefore remains mildly under-specified.
Side Effects
Side effects are those of the expressions evaluated before short-circuiting stops evaluation, or of all expressions if none evaluates to nil.
Exceptional Situations
Malformed syntax is erroneous.
Examples
(and T T) => T(and T nil)yields false
Compatibility
Autodesk classifies and as a special form.
Notes
Because Autodesk's summary page is brief, the exact value returned in non-trivial truthy cases should still be confirmed by dedicated vendor pages or tests.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [About Special Forms (AutoLISP)](https://help.autodesk.com/cloudhelp/2017/ENU/AutoCAD-AutoLISP/files/GUID-F992EAA3-AFFC-425D-B7C9-6A9CB0EA2768.htm)
- [Equality and Conditional Functions Reference (AutoLISP)](https://help.autodesk.com/cloudhelp/2023/ENU/AutoCAD-AutoLISP-Reference/files/GUID-C6A7FC58-7A07-4650-9D59-12CAFD194FDA.htm)
- Status: documented as a special form and by summary; exact return convention still needs tighter confirmation.