I want to use a while loop with many conditions, like 30+ conditions, my question is, is there a limit to how many conditions I can put into a while loop, or for that matter an if statement or any other conditional?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No there is no technical limits. Hovever your teammates will most likely cast a damnation upon you having tried to make sense of your code.
The good way is to split your conditions into logical groups and wrap them into functions with self-explanatory names.