0
Can i use break in if else statement ? Plz help me with this
4 Answers
+ 10
If it is inside a loop, yes.
If it is not, no.
+ 2
after Maz's answer
if it is not in loop
you don't need to break it because it can't execute more than one time
0
While you can't break out of an "if" statement, you can always structure it so that you don't need a break. Show an example where you think you need a break.