I was wondering, does VB have any way to support short circuit evaluation of if statements, or any other Boolean statements for that matter? I've never seen any, and I was just wondering if it can be done. It's not particularly important, but it would a lot cleaner to write
if x=a and not b and c then ...
when b and c are not necessarily well defined than it is to use a whole bunch of nested if blocks. I know that in Ada95, there is the standard AND as well as an AND THEN, which is a short circuit version. Does VB have anything comparable, or do I just have to live with ugly code?
if x=a and not b and c then ...
when b and c are not necessarily well defined than it is to use a whole bunch of nested if blocks. I know that in Ada95, there is the standard AND as well as an AND THEN, which is a short circuit version. Does VB have anything comparable, or do I just have to live with ugly code?