# nand function

False when every condition is true.

## How to write it

### nand(p, q, ...)

**p**

A condition. Takes a condition, true or false.

**q**

A condition. Takes a condition, true or false.

## Examples

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

  `nand(true, true)`

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

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

## Related functions

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

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

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

  How many assignments of its variables make a condition true.
- [logical_not](https://hilberon.com/library/logical_not)

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

  The assignments of its variables that make a condition true.
- [logical_expand](https://hilberon.com/library/logical_expand)

  Distribute and over or in a logical expression.

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