Check out example codes for "how to write an or in c++". It will help you in understanding the concepts better.

Code Example 1

if (a == 0 || b == 0)
{
  //statement here, || was used as an or
}

Learn ReactJs, React Native from akashmittal.com