- Combining conditions is done with &&, ||,
and ^^.
- Note that the operators are both in form
of double characters (i.e. doubled ampersands, doubled bars, and doubled caret).
- DO NOT confuse it with the single version ones. The
single version ones are used for bit operators, which is discussed later.
- If you mistype the operators to the single version, the compiler usually won't complain.
This will cause a lot of headache. So, beware.
|