# logical_not function

The opposite of a condition: the function form of not.

## How to write it

### logical_not(p)

**p**

A condition, true or false. Takes a condition, true or false.

## Examples

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

  `logical_not(true)`

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

  [Open in the solver](https://hilberon.com/?q=logical_not%28true%29)

## Related functions

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

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

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

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

  False when every condition is true.
- [nor](https://hilberon.com/library/nor)

  True when every condition is false.
- [less_equal](https://hilberon.com/library/less_equal)

  True when the first value is at most the second: the function form of \<=.

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