M
Mike Ratcliffe
We have been having a lively debate at work about whether or not we
should use brackets with conditionals that contain AndAlso. This is
because AndAlso has precedence over OrElse and I say that it makes
code more manageable if brackets are included.
False OrElse True AndAlso False will return False because AndAlso has
precedence over OrElse.
I say that this is better written as:
False OrElse (True AndAlso False)
What do you think?
should use brackets with conditionals that contain AndAlso. This is
because AndAlso has precedence over OrElse and I say that it makes
code more manageable if brackets are included.
False OrElse True AndAlso False will return False because AndAlso has
precedence over OrElse.
I say that this is better written as:
False OrElse (True AndAlso False)
What do you think?