Check out example codes for "and or in c++". It will help you in understanding the concepts better.

Code Example 1

int x, y;
if (x < y){
  //code
}

Code Example 2

( (5 == 5) && (3 > 6) )  // evaluates to false ( true && false )
( (5 == 5) || (3 > 6) )  // evaluates to true ( true || false )

Learn ReactJs, React Native from akashmittal.com