Boolean operations

There are couple Boolean operations that you need to know.

Boolean operations are used to evaluate result of several Boolean expressions.

There is AND Boolean operations. In this case all the Boolean expressions need to evaluate to True in order for the final result to be True, if one of the expressions is false, then the final result will be False.

If one of the expression is False, then there is no need to check the result of the other expressions, final result will be False.

Another common Boolean operation is OR. If one of the Boolean expressions will be evaluated to TRUE, then the result of OR operation will evaluate to TRUE.

If one the conditions evaluates to TRUE, then there is no need to evaluate the rest of the conditions.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator