# logical_and function

True when every condition is true: the function form of and.

## How to write it

### logical_and(p, q, ...)

**p**

A condition. Takes a condition, true or false.

**q**

A condition. Takes a condition, true or false.

## Examples

- $\displaystyle \operatorname{logical\_and}(\operatorname{true}, \operatorname{false}) = \operatorname{false}$

  `logical_and(true, false)`

  In the solver, `logical_and(true, false)` gives `false`.

  [Open in the solver](https://hilberon.com/?q=logical_and%28true%2C%20false%29)

## Related functions

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

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

  The opposite of a condition: the function form of not.
- [logical_or](https://hilberon.com/library/logical_or)

  True when some condition is true: the function form of or.
- [less_equal](https://hilberon.com/library/less_equal)

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

  True when the first value is less than 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.

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