Quote Originally Posted by sayzer
If you meant the size in terms of the words used,

I had 103 words with "IF" statement and 110 words with "Select Case" statement.

How did you have 2.5 times more words?
Hi!

With the F877 chip I got 43 and 114 for the two codes.

What chip did you try?

Generally you have to keep the if statements as "thin" as possible. An AND can be replaced by one more IF resulting in less words.

Ioannis