XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next
=
Type: |
- |
function (subr) |
Source: |
- |
xlmath.c |
Syntax
- (= expr1 expr2 ... )
- exprN - a numeric expression
returns - T if the results of
comparing the expressions are all true,
NIL otherwise
Description
The '=' [equality] function takes an arbitrary number of
numeric arguments. It checks to see if all the numbers are equal.
T is returned if all of the
arguments are numerically equal to each other,
NIL is returned otherwise.
Examples
(= 1 1) ; returns T
(= 1 2) ; returns NIL
(= 1 1.0) ; returns T
(= 1 1.0 1 (+ 0 1)) ; returns T
(= 1 1.0 1.00001) ; returns NIL
(= "a" "b") ; error: bad argument type
(setq a 1) (setq b 1.0) ; set up A and B with values
(= a b) ; returns T
See the
=
function in the XLISP 2.0 manual.
Back to Top
XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next