A truth table is a
A truth table has one column for each input variable (for example, P and Q), and one final column showing all of the possible results of the logical operation that the table represents (for example, P XOR Q). Each row of the truth table contains one possible configuration of the input variables (for instance, P=true Q=false), and the result of the operation for those values. See the examples below for further clarification.
There are 4 unary operations:
The output value is always true, regardless of the input value of p
The output value is never true: that is, always false, regardless of the input value of p
The truth table for the logical identity operator is as follows:
The truth table for NOT p (also written as ¬p, Np, Fpq, or ~p) is as follows: