I have a very dull If And Statement that doesn't work, It Is:
If MyArray(1) = False And MyArray(2) = False And MyArray(3) = False And MyArray(4) = False And MyArray(5) = False And MyArray(6) = False And MyArray(7) = False And MyArray(8) = False And MyArray(9) = False And MyArray(10) = False And MyArray(11) = False And MyArray(12) = False And MyArray(13) = False And MyArray(14) = False And MyArray(15) = False And MyArray(16) = False And MyArray(17) = False And MyArray(18) = False And MyArray(19) = False And MyArray(20) = False And MyArray(21) = False And MyArray(22) = False And MyArray(23) = False And MyArray(24) = False And MyArray(25) = False And MyArray(26) = False And TArray(1) < 1 And TArray(2) < 1 And TArray(3) < 1 Then
I've gone through each of them 1 by 1 and they are all false or less than 1 but It still doesn't work, Is there a limit to how many If Ands you can have?? some help would be great!
Regards
SgtPepps
If MyArray(1) = False And MyArray(2) = False And MyArray(3) = False And MyArray(4) = False And MyArray(5) = False And MyArray(6) = False And MyArray(7) = False And MyArray(8) = False And MyArray(9) = False And MyArray(10) = False And MyArray(11) = False And MyArray(12) = False And MyArray(13) = False And MyArray(14) = False And MyArray(15) = False And MyArray(16) = False And MyArray(17) = False And MyArray(18) = False And MyArray(19) = False And MyArray(20) = False And MyArray(21) = False And MyArray(22) = False And MyArray(23) = False And MyArray(24) = False And MyArray(25) = False And MyArray(26) = False And TArray(1) < 1 And TArray(2) < 1 And TArray(3) < 1 Then
I've gone through each of them 1 by 1 and they are all false or less than 1 but It still doesn't work, Is there a limit to how many If Ands you can have?? some help would be great!
Regards
SgtPepps