# logical_or function

True when some condition is true: the function form of or.

## How to write it

### logical_or(p, q, ...)

**p**

A condition. Takes a condition, true or false.

**q**

A condition. Takes a condition, true or false.

## Examples

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

  `logical_or(true, false)`

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

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

## Related functions

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

  The opposite of a condition: the function form of not.
- [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.
- [satisfiability_count](https://hilberon.com/library/satisfiability_count)

  How many assignments of its variables make a condition true.

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