Ani

Ani

  • 965
  • 680
  • 32.1k

Or condition on same variable

Aug 25 2016 10:15 AM

Hi


I have to apply multiple conditions on a variable, so I am applying like this.

if(playerstate=="AP" || coachstate=="AP" || academystate =="AP")
return true;
 
Can someone suggest any smart code for the code or anyway can we reduce code ?

Answers (2)