Function Entry: <

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: <

Name

<

Class

Function

Syntax

(< expr [expr ...])

Arguments and Values

  • one or more expressions, each a number or a string (shared domain rule above). Strings are ordered lexicographically by code point.

Description

Returns T if each argument is less than the argument to its right — over numbers (by value) and strings (lexicographically).

Return Values

  • T if the ordered comparison succeeds
  • nil otherwise, or if any argument is nil (bottom propagation)

Side Effects

Side effects are those of evaluating the arguments.

Examples

  • (< 1 2 3) => T
  • (< "a" "b") => T ; (< "a" "b" "c") => T
  • (< 1 nil) => nil — no error (⊥ propagation).
  • (< 1 "a") signals a type error.

Compatibility

A comparison predicate over numbers and strings. Strings order lexicographically by character code point (case-sensitive; host code-point ordering). Cross-type non-nil arguments signal a type error; a nil argument yields nil without error. See "The Comparison Operators , /, <, <=, >, >=".

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: documented; string ordering verified by direct probe.
  • Status: string-comparison domain confirmed on BricsCAD V26.

Source Notes