I didn't understood that what is the difference between "else" and "elseif"?!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I didn't understood that what is the difference between "else" and "elseif"?!!

8th Aug 2018, 12:40 PM
Victory
Victory - avatar
6 Answers
+ 3
Lets try to understand it in english language. Only if else : It means check if condition is true if not than execute else (no other choice). if else if : It means check if this condition is true if not check another one (else if) if that not check another one (next else if) and if none of them are true execute else one. Hope this helps ☺️☺️.
8th Aug 2018, 1:07 PM
Meet Mehta
Meet Mehta - avatar
+ 3
Just once again go through my else if part and if your query is not solved than please post it here.I will be happy to help☺️☺️.
8th Aug 2018, 1:27 PM
Meet Mehta
Meet Mehta - avatar
+ 1
"if" must be the first statement, "else if"(elif in python) comes after "if", then "else" comes the final; ->> Any language?!
8th Aug 2018, 1:08 PM
Sousou
Sousou - avatar
0
Meet Mehta Sousou Thank you friends, but I edited my question, in fact I'm confused now...
8th Aug 2018, 1:24 PM
Victory
Victory - avatar
0
Meet Mehta I think that I understood, thanks a lot, Wish you success.
8th Aug 2018, 1:46 PM
Victory
Victory - avatar
0
Happy that helped☺️☺️.
8th Aug 2018, 1:48 PM
Meet Mehta
Meet Mehta - avatar