Skip to content

Greater than >

The > function is used to compare two values. It returns true if the first value is greater than the second value, otherwise it returns false.

 (> 1 1)
false
 (> 2 1)
true
 (> 1 2)
false
 (> [1 2 3] 1)
[false true true]
 (> [1 2 3] [1 2 3])
[false false false]
 (> [1 2 3] [1 2 4])
[false false false]