Look in the manual under sections
4.18 Comparison Operators
and
4.19 Logical Operators.