(> item1 item2 ...)


The first is greater than the others .


The greater-than function displays a T (true) or a nil (false):

    • If the first item is greater than the second item (and so on), this function returns a T.
    • If the second item is less than or equal to the first, this function returns nil.

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

Examples

This expression Returns
(> 6 4.9) T
(> 7 8) nil
(> 6 4 4) nil
(> 6) T
(> "y" "x") T

NOTE This function is the opposite of the <= (Less Than or Equal To operator) function.

Tell me about...

(/= item1 item2 ...)

(< item1 item2 ...)

(= item1 item2 ...)

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

(if test statement1 [statement2])

(while text statement )

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language