A truth table is a mathematical table used in logic and can be used to see if a logical proposition is true for any input value. Truth tables are primarily used in connection with boolean algebra, boolean functions, and propositional calculus. A truth table has one column for each input variable, e.g. A and B and a row for each possible combination of the input variables being true and false. Other columns are then added for each logical operator such as “And”, “Or” and “XOR” and the results of these operators for each combination of inputs.