Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • true⁡⇒false⁡=false⁡\displaystyle \operatorname{true} \Rightarrow \operatorname{false} = \operatorname{false}
    implies(true, false)

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

    Open in the solver
  • 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.