Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference

>=


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 '>=' [greater-than-or-equal] function takes an arbitrary number of numeric arguments. It checks to see if all the numbers are monotonically non-increasing.  T  is returned if 'expr1' is the arguments are numerically, and monotonically non-increasing, NIL is returned otherwise. For two arguments, this has the effect of testing if 'expr1' is greater than or equal to 'expr2'.

Examples

(>= 1 2)            => NIL
(>= 1 1)            => T
(>= -1.5 -1.4)      => NIL
(>= 3 2 1)          => T
(>= 3 2 2)          => T
(>= 3 2 3)          => NIL
(>= "aa" "abc")     => error: bad argument type
(setq a 12 b 13.9)  => 13.9  ; set up A and B with values
(>= a b)            => NIL
(>= b a)            => T

See setq.

See also:

  Back to Top


Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference