0

How can we understand and use elif statement properly

It is easy learning Boolean logic and else-statement along with forgetting in near days

22nd Sep 2019, 12:13 PM
Hasan Anorov
Hasan Anorov - avatar
2 Respostas
+ 1
elif or else if statements is the same as: if (conditiona) { } else { if (conditionb) { code goes here.. } } elif/ else if statement: if (conditiona) { } else if (conditionb) { code goes here } So conditiona should be false other wise it won't go into the else if
22nd Sep 2019, 12:35 PM
Willem Roos