After having issues with the original code, I did switch mine to
Which did work and I did notice the word count dropped a bit. Your code looks like a pretty good way to do it too, thanks! Is there much difference between BRANCH and SELECT CASE? It looks like BRANCH needs GOTOs to avoid running through any following modes but is BRANCH a more simple / smaller option?Code:GoSub SetAllPinsHigh Select Case Mode Case 1 PinA = 0 Case 2 PinB = 0 Case 3 PinC = 0 Case 4 PinD = 0 Case 5 PinE = 0 End Select




Bookmarks