0

Can i use break in if else statement ? Plz help me with this

13th Jul 2017, 7:44 AM
Jigar patel
Jigar patel - avatar
3 Respuestas
+ 10
If it is inside a loop, yes. If it is not, no.
13th Jul 2017, 7:48 AM
Maz
Maz - avatar
+ 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
13th Jul 2017, 11:17 AM
Akash
Akash - avatar
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.
13th Jul 2017, 8:49 AM
Igor B
Igor B - avatar