Hi,
You could try a bunch of nested IF statements. It won't be "better" but it might compile to smaller code - worth a try.Another option would be to use an array instead of "discrete" variables and iterate thru it with a for-next loop. Might be worth a try.Code:IF CODE_ONE = 13 THEN IF CODE_TWO = 13 THEN 'With an oh IF CODE_THREE = 16 THEN IF CODE_FOUR = 21 THEN IF CODE_FIVE = 32 THEN 'Correct code ENDIF ENDIF ENDIF ENDIF ENDIF
/Henrik.
Bookmarks