implies function
True unless the first condition is true and the second false.
How to write it
implies(p, q)
- p
- The premise. Takes a condition, true or false.
- q
- The conclusion. Takes a condition, true or false.
Examples
implies(true, false)In the solver,
Open in the solverimplies(true, false)givesfalse.
Related functions
- is_even
Test whether a whole number is even.
- greater_equal
True when the first value is at least the second: the function form of >=.
- is_integer
Test whether a value is a whole number.
- greater
True when the first value is greater than the second: the function form of >.
- is_number
Test whether a value is a number.
- equivalent
True when two conditions are both true or both false.