Can't understand | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can't understand

Help,

7th Nov 2018, 3:24 PM
Devil Dent
Devil Dent - avatar
2 Answers
+ 11
The if-else condition is used to check whether the condition specified is true or false. The condition is written in if and if that condition if true then statements written in if block are executed and if that condition is false then the else block of statements are executed. So the else statements are just used to execute the statements when then if condition evaluates to be false
7th Nov 2018, 3:38 PM
Nova
Nova - avatar
+ 1
Thanks
7th Nov 2018, 3:40 PM
Devil Dent
Devil Dent - avatar