# 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

- $\displaystyle \operatorname{true} \Rightarrow \operatorname{false} = \operatorname{false}$

  `implies(true, false)`

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

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

## Related functions

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

  Test whether a whole number is even.
- [greater_equal](https://hilberon.com/library/greater_equal)

  True when the first value is at least the second: the function form of >=.
- [is_integer](https://hilberon.com/library/is_integer)

  Test whether a value is a whole number.
- [greater](https://hilberon.com/library/greater)

  True when the first value is greater than the second: the function form of >.
- [is_number](https://hilberon.com/library/is_number)

  Test whether a value is a number.
- [equivalent](https://hilberon.com/library/equivalent)

  True when two conditions are both true or both false.

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