## /Prelude-v21.1.0/Integer/greaterThan.dhall

Copy path to clipboard

`greaterThan` checks if one Integer is greater than another.

### Examples

`greaterThan +5 +6 ≡ False`
`greaterThan +5 +5 ≡ False`
`greaterThan +5 +4 ≡ True`
`greaterThan -5 +8 ≡ False`
`greaterThan -5 -3 ≡ False`
`greaterThan -3 -5 ≡ True`
`greaterThan -3 -3 ≡ False`

### Source

```--| `greaterThan` checks if one Integer is greater than another.let Bool/not =        ../Bool/not.dhall
sha256:723df402df24377d8a853afed08d9d69a0a6d86e2e5b2bac8960b0d4756c7dc4      ? ../Bool/not.dhalllet lessThanEqual =        ./lessThanEqual.dhall
sha256:e3cca9f3942f81fa78a2bea23c0c24519c67cfe438116c38e797e12dcd26f6bc      ? ./lessThanEqual.dhalllet greaterThan    : Integer → Integer → Bool    = λ(x : Integer) → λ(y : Integer) → Bool/not (lessThanEqual x y)let example0 = assert : greaterThan +5 +6 ≡ Falselet example1 = assert : greaterThan +5 +5 ≡ Falselet example2 = assert : greaterThan +5 +4 ≡ Truelet example3 = assert : greaterThan -5 +8 ≡ Falselet example4 = assert : greaterThan -5 -3 ≡ Falselet example5 = assert : greaterThan -3 -5 ≡ Truelet example6 = assert : greaterThan -3 -3 ≡ Falsein  greaterThan```