The concept of logic is simply transfering a signal in a complicated fashion.
LBP logic is comparable to that of a computer with its usage of logic gates
in this post im just going to try to explain logic gates as a reminder
The NOT Gate produces the signal opposite to what its connected to its input. You can imagine this as hooking up a button to a NOT Gate and finding out that the button does the reverse of what it has to do.
The OR Gate produces a signal if one or more of its inputs are activated. You can imagine this as two buttons connected to an OR Gate. Either button's output is funneled into one output.
The AND Gate will only produce a signal if all of its inputs are activated. You can imagine this like connecting two switches into an AND Gate. Both switches need to be activated for the AND Gate to work.
THe XOR Gate produces a signal when only one of its inputs are active. Any more than one will deactivate the signal. You can imagine this as hooking up two switches to an XOR Gate and connecting the XOR Gate's output to a light source. One of both switches can be active to turn the light on but if both are active, then the light turns off.
Obviously there is alot more logic in LBP but these are some of the most common examples.
I don't know if this post will help anyone who isn't familiar with LBP logic (if anything I might have made a more complicated explanation even for people who know all about logic), but this is also the first post here so maybe I've set a ground base for people who are better at explaining complex stuff than I am.