First of all, If several options are available then it's not recommended , nested if-else because it reduces readability , to handle this requirement we should go for switch statement
If any case is matched from that case onwards all statements executed until the break end up the switch is called Fall through inside the Switch
X=0
X=1
X=2
X=3
The main advantage of fall through inside the switch is , we can define common action for multiple cases (code reusability )
X=1
Social Plugin