+ 5

Please anyone Tell me the importance of if else statement because I think we can trigger an escape it but before that importance

importance of if else statement

18th May 2018, 7:21 AM
Moody Amin
Moody Amin - avatar
7 Answers
+ 5
If - else statements perform a test to decide which code to run. If the test is true, the if block{ } runs. If the test is false, the 'else'{ } block runs. . I found this stuff on the internet. Hope it helps you.
24th May 2018, 11:07 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 5
Many times, while coding, we want to perform different actions based on different conditions. We can do this by using conditional statements in our code. If - else helps us to create conditional statements.
24th May 2018, 6:48 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 5
Yes sir.
24th May 2018, 10:18 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 4
if else statements are conditional behaviors constraints for the program compiler has to check first the constraints and then follow up the actual code
18th May 2018, 7:29 AM
Rajeeb
+ 4
i get you when we want to make two actions per time right
24th May 2018, 7:36 AM
Moody Amin
Moody Amin - avatar
+ 4
Great sir!
24th May 2018, 11:09 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 3
that helps
24th May 2018, 11:08 AM
Moody Amin
Moody Amin - avatar