if the conditions are exclusive, I find early returns to be a very useful way of organising code:
if(condition1){// do stuff when condition1 is truereturn}if(condition2){// do stuff when condition2 is truereturn}// do stuff for condition 3, which is the last conditionreturn...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
if the conditions are exclusive, I find early returns to be a very useful way of organising code: