Hello,
I need confirmation if the following code will work as expected.
Public StatusLED(8) As Boolean
Public Ignore As Boolean
Public Flag As Boolean
For I = 1 To 8
If StatusLED(I) Then
If NOT Ignore Then Flag = True
EndIf
Next I
But perhaps this is better?
For I = 1 To 8
If StatusLED(I) AND NOT Ignore Then
Flag = True
EndIf
Next I
Thanks in advance!
* Last updated by: bKlippert on 4/24/2014 @ 11:50 PM *
As Ignore only needs to be tested once you could use
Public StatusLED(8) As Boolean
Public Ignore As Boolean
Public Flag As Boolean
If NOT Ignore Then
For I = 1 To 8
If StatusLED(I) Then Flag = True
Next I
Endif