Hi All,
Quick question for you; I have a compound if statement that I'm using in some code but it's a bit messy and I was wondering if there is a way to tidy it up or a better way of doing it.
The code needs to test if one of two scenarios are met them carry out a task - the same tast for the two scenarios. Both scenarios have multiple criteria with much of it shared between the two but one difference meaning an additional criteria needs to be checked. In this example 'C':
Ideally it would be good to have it exit the statement if A<>1 and I have heard you can use AndAlso and OrElse, but I have not come across them before and not sure how to construct a statement with them.![]()
Please Login or Register to view this content.
Any alternative ideas appreciated.
Thanks, TC
Bookmarks