Saved Bookmarks
| 1. |
Compare if and if else statement? |
|
Answer» If: If statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation. When the condition fails, nothing happens. If else: If statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed. |
|