c++ or statements code example Example: how to write an or in c++ if (a == 0 || b == 0) { //statement here, || was used as an or }