+ 1

For if and else

its given all else statements should have corresponding if statements...is it necessary that all "if statements" should have corresponding "else statments"

5th Jun 2017, 6:01 AM
Sachin s
Sachin s - avatar
1 Answer
+ 11
Nope! You can have a standalone if statement, when there's no need to do something else if it's false.
5th Jun 2017, 6:04 AM
Tamra
Tamra - avatar