Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 14 Online
OpenStudy (anonymous):

Help in clarifying the difference between "Else" and "EIif" would be welcome!

OpenStudy (konradzuse):

Well if elif is else if then this is how it works. If(something) { //do something } else if(smething) { //if the first if is false, then check the next. } else { //everything else that doesn't fall into the if or else if. } If you do something like if(something) if(something) else then you will check both if statements then do the else.

OpenStudy (anonymous):

KonradZuse: thanks for both your response and the promptness of the reply. I 'think" I follow so I'll try some examples and see whether the result is what I wanted.

OpenStudy (anonymous):

KonradZuse: I got it! Many thanks!

OpenStudy (konradzuse):

Yup no problem.... What language are you using?

OpenStudy (dean.shyy):

Else and Else If are both different. Else if the end if the If is not fulfilled. Else If is a sub-type of Else if If and Else are not fulfilled.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!