Greater than test

Learn how to check if a value is greater than to another.

Syntax

This test has the following syntax:

/*<value>*/ is greater than /*<reference>*/
Try in Playground

To negate the test, you can write:

/*<value>*/ is not greater than /*<reference>*/
Try in Playground

Parameters

These are the supported parameters:

value

The value to compare with the reference value.

reference

The value to compare against.

Examples

Here is a basic example of how to check whether a value is greater than another value:

1 + 2 is greater than 1 // true
Try in Playground