Shop OBEX P1 Docs P2 Docs Learn Events
how to compare incoming serial data and decide which goes where? — Parallax Forums

how to compare incoming serial data and decide which goes where?

ice-egozice-egoz Posts: 55
edited 2004-08-19 05:40 in BASIC Stamp
This is what I have to do:


shutDown VAR Byte(9)
currentLocation VAR Byte(16)

decide:
'whichever SERIN=Shut down/Current location --> goes to their following destinations

I believe that I know that u cant compare strings/chars. Any other solutions?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I need all ya guidance Masters. [noparse]:)[/noparse]

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-08-19 05:40
    You CAN compare two arrays -- one byte at a time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.