Skip to main content

Any.<

<that

Group: Operators
Aliases: less than

Documentation

Checks if self is less than that.

To be comparable, a custom object must have an associated comparator which will return Ordering.Less/Greater for unequal values. Otherwise, this will raise Incomparable_Values error. See Ordering.enso for information how comparators work.

Arguments

  • that: The value to compare self against.

Examples

Checking if the variable a is less than 147.

      from Standard.Base import all

example_less =
a = 7 * 21
a < 147