yes logic gates, feel free to use these if these have any actual purpose inputs should ONLY be either 0 or 1 or else its not working, but if its a number please dont do that.. feel free to give credit if you want but credit isnt mandatory ( PLEASE do not steal this ) if you have no idea what logic gates do what and you don't want to look inside to check, then heres a guide: NOT: inverses the input. e.x: NOT of 1 is 0, and vice versa AND: only returns 1 if both inputs are 1. if both inputs are not 1, then return 0. OR: only returns 1 if either inputs are 1. if both inputs are 0, then return 0. NOR: the same as OR, but inverse. only returns 1 if both inputs are 0. NAND: the same as AND, but inverse. returns a 0 only if all inputs are 1. XOR: only returns a 1 if both inputs are different. XNOR: the same as XOR, but inverse. returns a 1 only if both inputs are the same.