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)In the solver,
Open in the solverlogical_or(true, false)givestrue.
Related functions
- 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.