9. If else

9.3 if else condition

if else condition is used to do something when the condition is true and to do something else when the condition is false.


Now change food to soup and then execute the code. Notice that this time else condition message will be printed.