The logical OR operator ( || ) returns the boolean value true if either or both operands is true and returns false otherwise . The operands are implicitly converted to type bool before evaluation, and the result is of type bool . Logical OR has left-to-right associativity.