Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • logical_or⁡(true⁡,false⁡)=true⁡\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
  • logical_not

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

  • logical_expand

    Distribute and over or in a logical expression.

  • logical_and

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

  • nand

    False when every condition is true.

  • nor

    True when every condition is false.

  • satisfiability_count

    How many assignments of its variables make a condition true.