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 ?
Hi
I have to apply multiple conditions on a variable, so I am applying like this.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabu ElavarasanRank #1,350 · 1.2K reputationPosted Aug 25, 2016, 6:24 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Aug 25, 2016, 6:24 AM EDT