I found using AndAlso/OrElse, all the time, VERY annoying. It reduces code readability, especially when conditioning get complicated.
Any suggestions?
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.
I’m fairly sure there’s no (supported) way to change the meaning of
And/Or, and assuming that your code might in the future be maintained or read by other people it would be a very bad idea, you’d confuse them completely.If conditioning gets too complicated I’d suggest instead splitting it up on multiple lines.
so instead of:
Make it something like: