Suppose you want to make a login page and provide multiple options for the user to log in like thumbprint, password, and pin. If any 1 these are correct you grant access.
OR allows us to perform this without having to use multiple if else statements.
From the table it is evident that the truth value of OR is 0 only when Both X and Y are zero.
Let us try to implement a simple log in page using OR to allow access through any one of the options 1. password OR 2.pincode.