Let us say I have an if condition which checks for one of the events a, b, c,... to be true as shown:
if(a || b || c || .... || z)
do something
My question is that let us say that the condition c turns out to be true. Then will the program evaluate the conditions d to z or will it proceed to execute the "do something" instructions?
Using || will evaluate each condition left to right until it hits a value that's true. It will then stop the check.
If you use |, then every condition will be evaluated regardless of the result.