Function Entry: /=
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: /=
Name
/=
Class
Function
Syntax
(/= expr [expr ...])
Arguments and Values
- one or more expressions of any type (see "The Comparison Operators" above).
Description
Tests each argument against the one to its right for inequality, with the equality rule of =. Only adjacent pairs are compared: (/= 1 2 1) is T.
Return Values
- T if every adjacent pair differs, or with a single argument
- nil as soon as an adjacent pair is equal
Side Effects
Side effects are those of evaluating the arguments.
Examples
- `(/= 1 2)
> T"a" "b") => T`;(/ (/= 1 2 1) => T— adjacent pairs only.(/= 1 1 2) => nil(/= 1 "1") => T— no error.- `(/= nil nil)
> nil'a 'b) => T`;(/
Compatibility
The inequality counterpart of =, over adjacent pairs (not Common Lisp's "all pairwise distinct"). See "The Comparison Operators , /, <, <=, >, >=".
Availability
- AutoCAD 2022: measured (comparison-operators probe, 2026-09-25).
- BricsCAD V25 / V26: measured, identical to AutoCAD.
- Status: verified on both vendors.
Source Notes
- [Non-alphabetic Functions Reference (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.