Help with comparing two 4-character variables one character at a time. attn: J
PrestigeWorld
Posts: 7
We are having a problem with first collecting data from an array of pushbutton switches. We would like to check pins 11-15 for a high signal. When four high signals have been recieved we would like to store the order in which they were recieved. Each pin is assigned a letter value. We would like to compare the user's four letter combo with a specified "correct" four letter combo. We are having some trouble with getting the code to compile. Please take a look. Any suggestions are greatly appreciated.
Thanks,
Prestige Worldwide
Thanks,
Prestige Worldwide
Comments
Pin 11 would be $A.· Pin 12 would be $B and so on to pin 15 which would be $F.· You could store combinations like $ABEF and compare them in one operation.