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

Examples

(> 1 1)                       ; returns NIL
(> 1 2)                       ; returns NIL
(> 2.0 1.99)                  ; returns T
(> 3 2 1)                     ; returns T
(> 3 2 2)                     ; returns NIL
(> "aa" "aa")                 ; error: bad argument type
(setq a 12) (setq b 999.999)  ; set up A and B with values
(> a b)                       ; returns NIL
(> b a)                       ; returns T

See the  >  function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next