Chances are that you have more AND's than the compiler can keep track of. Even if your numerous AND's did work, your code would compile smaller if you use this technique:
IF (A=0) then
if (B=1) then
if (C=1) then
if (D=1) then
if (E=1) then
if (F=0) then
if (G=1) THEN
A=1
endif
endif
endif...repeat as needed...
ELSE
A=2
ENDIF
Bookmarks