Lably
Skip to content

If and only if

Logical connective

  • 6 min read
  • 5 chapters
  • 1 lab on Lably

Learn it on Lably

In writing, phrases commonly used as alternatives to P "if and only if" Q include: Q is necessary and sufficient for P, for P it is necessary and sufficient that Q, P is equivalent (or materially equivalent) to Q (compare with material implication), P precisely if Q, P precisely (or exactly) when Q, P exactly in case Q, and P just in case Q. Some authors regard "iff" as unsuitable in formal writing; others consider it a "borderline case" and tolerate its use. In logical formulae, logical symbols, such as ↔ and ⇔, are used instead of these phrases; see § Notation below.

Definition

The truth table of P ↔ Q is as follows:

It is equivalent to that produced by the XNOR gate, and opposite to that produced by the XOR gate.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Foundations