# less 函数

当第一个值小于第二个值时返回真：\< 的函数形式。

## 怎么写

### less(a, b)

**a**

一个值。接受一个表达式。

**b**

一个值。接受一个表达式。

## 示例

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

  `less(1, 2)`

  在求解器中，`less(1, 2)` 的结果是 `true`。

  [在求解器中打开](https://zh.hilberon.com/?q=less%281%2C%202%29)

## 相关函数

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

  当第一个值至多等于第二个值时返回真：\<= 的函数形式。
- [is_tautology](https://zh.hilberon.com/library/is_tautology)

  判断一个条件对其变量的所有取值是否都为真。
- [logical_and](https://zh.hilberon.com/library/logical_and)

  当每个条件都为真时返回真：and 的函数形式。
- [is_satisfiable](https://zh.hilberon.com/library/is_satisfiable)

  检验一个条件对其变量的某些取值是否为真。
- [logical_expand](https://zh.hilberon.com/library/logical_expand)

  在逻辑表达式中将 and 分配到 or 上。
- [is_odd](https://zh.hilberon.com/library/is_odd)

  检验一个整数是否为奇数。

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