Function Entry: >=
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: >=
Name
>=
Class
Function
Syntax
(>= expr [expr ...])
Arguments and Values
- one or more expressions; with two or more, each adjacent pair must be two numbers, two strings, or include
nil(shared rules above).
Description
Returns T if each argument is greater than or equal to the argument to its right — numbers by value, strings lexicographically by character code point, with nil below every other value. The pairs are compared left to right and the result is nil at the first pair that does not hold.
Return Values
- T if every adjacent pair holds, or with a single argument
- nil at the first pair that does not hold
Side Effects
Side effects are those of evaluating the arguments.
Examples
(>= 2 2 1) => T(>= "b" "b" "a") => T- `(>= 1 nil)
> Tnil 1) => nil` —;(>nilis the smallest value, never an error. (>= 1 "a")signals a type error, as does a symbol or a list.- `(>= 'a)
> T)` signals an error (too few arguments).— one argument is not checked;(>
Compatibility
See "The Comparison Operators , /, <, <=, >, >=" for the shared rules and the vendor divergence.
Availability
- AutoCAD 2022: measured (comparison-operators probe, 2026-09-25).
- BricsCAD V25 / V26: measured; differs from AutoCAD on the rows listed under clautolisp below.
- Status: verified on both vendors.
Source Notes
- [>= (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/KOR/AutoCAD-LT-AutoLISP-Reference/files/GUID-EBDC1072-48BF-4204-80B1-73430DBF58E1.htm)
- Probe:
autolisp-front-end/tests/scenarios/language/comparison-operators-probe.lsp.
clautolisp
clautolisp implementation deviation — not part of the normative specification above. Divergence case 2 (resolved: AutoCAD adopted). The vendors differ on:
(>= 'a nil): AutoCADT(normative), BricsCAD type error.(>= nil 1 "a"): AutoCADnil(normative), BricsCAD type error.
Under --autocad, --clautolisp and --lax clautolisp gives AutoCAD's answer silently. Under --dialect bricscad it signals the type error, as BricsCAD does, and emits a [comparison-divergence] portability warning; under --strict it gives AutoCAD's answer and also warns. A comparison of two arguments never diverges except (>= x nil) with x neither a number nor a string. Implemented in clautolisp/autolisp-builtins-core/source/api.lisp (RELATIONAL-ORDER-P); see issues/closed/comparison-operators-vendor-semantics.issue.