0
I want to ask how to write a method to stop if -else function running else part but can run if part thank you.
2 Answers
0
If I have understood you correctly, I believe, this is what you want.
--
Just don't put "else" on it.
Just put both of your conditions in "if" clause
if (CONDITION1)
//do this
if (CONDITION2)
//do this also
NO MORE "ELSE" PART.
0
Ok
thanks