How many elsifs can you have? Is it infinite?

Just a general question.

maybe there is a limit, if your computer runs out of memory (bit unlikely)

But if you consider using a lot of else if statements, you should check the logic of your code. From considering switch statement to a rewrite of the logic of your code

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.