I don't know what is wrong with this

if I change the error above to elif instead, the last else becomes an error. (photo below)
Screenshot 2021-08-12 at 7.22.01 PM

If I end both with elif, there’s no error. Is it alright to end with elif instead of else?

2 Likes

It is fine to end it with elif. You could also remove the condition, like this →
else {
}

Or end it like this →

elif (condition) {
}

2 Likes

@Sydney_H Hi please close this thread. Thank you very much! :slight_smile:

3 Likes

Closed by OP request. :smiley: