Logical conjunction

The logical conjunction or logical and operator more commonly referred to symbolically as and or && is a binary mathematical operator used in the fields of logic and computer science which returns true only when both of its arguments are true and false otherwise.

For example:

if (readskill >= 5 && book == true && light == true) {       room_goto(rm_readingroom); } Which is equivalent to: if (readskill >= 5 and book and light) {       room_goto(rm_readingroom); }

A single ampersand-symbol (&) is a bitwise operator and should not be confused with the double ampersand-symbol which is a logical operator.