Binary Logic is where the values of the variables are true or false, usually denoted as 1 or 0. Circuits implementing binary logic are called logic gates.
Different Simple Logic Gates
Input A and input B have to be on to make output Q on.
Either input A or B can be on to make output Q on.
If input A is on, Q is off and vice versa.