(= item1 item2 ...)


Return T if they're the same.


This function tells you whether two (or more) items are equal:

If the function contains more than two items, this function returns T (true) when each item to the right is equal to the item on its left. The items can be numbers or strings.

 

Examples

This expression Returns
(= 8 8) T
(= 10 10.0 10) T
(= "x" "y") nil
(= "door" "door") T
(= "door" "door" "door") T
(= 10) T

 

NOTES

 

Tell me about...

(/= item1 item2 ...)

(< item1 item2 ...)

(<= item1 item2 ...)

(> item1 item2 ...)

(>= item1 item2 ...)

(cond (statement1 result1 ...) ...)

(eq statement1 statement2)

(if test statement1 [statement2])

(while text statement …)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

 


Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved.