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