Check out example codes for "java if a or b". It will help you in understanding the concepts better.

Code Example 1

if(a || b){
  doSomething();
}

/*
For if queries: || (OR), && (AND), == (EQUALS), != (DOES NOT EQUAL)
				< (LESS THAN), > (GREATER THAN), <= (LESS THAN OR EQUAL TO),
                >= (GREATER THAN OR EQUAL TO)
*/

Learn ReactJs, React Native from akashmittal.com