# less function

True when the first value is less than the second: the function form of \<.

## How to write it

### less(a, b)

**a**

A value. Takes an expression.

**b**

A value. Takes an expression.

## Examples

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

  `less(1, 2)`

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

  [Open in the solver](https://hilberon.com/?q=less%281%2C%202%29)

## Related functions

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

  True when the first value is at most the second: the function form of \<=.
- [is_tautology](https://hilberon.com/library/is_tautology)

  Test whether a condition is true for every value of its variables.
- [logical_and](https://hilberon.com/library/logical_and)

  True when every condition is true: the function form of and.
- [is_satisfiable](https://hilberon.com/library/is_satisfiable)

  Test whether a condition is true for some value of its variables.
- [logical_expand](https://hilberon.com/library/logical_expand)

  Distribute and over or in a logical expression.
- [is_odd](https://hilberon.com/library/is_odd)

  Test whether a whole number is odd.

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