S
ScardyBob
Hello All!
I have a general question related to the structure of a If ... Then ...
statement. More specifically what are the costs/benefits from writing
an If ... Then ... statement as follows:
If i <> 0 Then
'Do Nothing
Else
'Code you want to do something productive
End If
Rather then writing it as:
If i = 0 Then
'Code you want to do something productive
End If
I know this may seem like a stupid question, but I've been writing
certain If ... Then ... statements in the first manner, thinking they
are equivalent and simply a manner of personnel preference. Is there a
downside to this (besides having to write an extra line or two)?
Thanks in Advance!
Mike
I have a general question related to the structure of a If ... Then ...
statement. More specifically what are the costs/benefits from writing
an If ... Then ... statement as follows:
If i <> 0 Then
'Do Nothing
Else
'Code you want to do something productive
End If
Rather then writing it as:
If i = 0 Then
'Code you want to do something productive
End If
I know this may seem like a stupid question, but I've been writing
certain If ... Then ... statements in the first manner, thinking they
are equivalent and simply a manner of personnel preference. Is there a
downside to this (besides having to write an extra line or two)?
Thanks in Advance!
Mike