Quote Originally Posted by towlerg View Post
rscor01, I didn't realize LOOKUP would do that. How would that go?
Nevermind. You would need too many entries in the LOOKUP constant fields. That would be 64 entries to be precise since your variable PORT has 6 bits. It will be something like this

Code:
LOOKUP MyPort, [0,1,2,2,3,3,3,3,4,........], MyVar
Still, it might be faster than NCD, but I don't know.