• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Boolean Algebra

once I saw:

Code:
For i = 1 To 2

 If i = 1 Then
  DoA()
 End If

 If i = 2 Then
  DoB()
 End If

Next i

It is of course possible that DoA() might change the value of i, although that is no excuse for such an abomination.
 

Advertisers

Back
Top