# greater function

True when the first value is greater than the second: the function form of >.

## How to write it

### greater(a, b)

**a**

A value. Takes an expression.

**b**

A value. Takes an expression.

## Examples

- $\displaystyle \operatorname{greater}(2, 1) = \operatorname{true}$

  `greater(2, 1)`

  In the solver, `greater(2, 1)` gives `true`.

  [Open in the solver](https://hilberon.com/?q=greater%282%2C%201%29)

## Related functions

- [greater_equal](https://hilberon.com/library/greater_equal)

  True when the first value is at least the second: the function form of >=.
- [equivalent](https://hilberon.com/library/equivalent)

  True when two conditions are both true or both false.
- [implies](https://hilberon.com/library/implies)

  True unless the first condition is true and the second false.
- [equal](https://hilberon.com/library/equal)

  True when two values are equal: the function form of ==.
- [is_even](https://hilberon.com/library/is_even)

  Test whether a whole number is even.
- [eliminate_quantifiers](https://hilberon.com/library/eliminate_quantifiers)

  An equivalent condition with the quantifiers removed.

---
Source: https://hilberon.com/library/greater
