Compare string
ChrisBP
Posts: 6
in BASIC Stamp
Hi,
I am using Parallax Wifi module in transparent mode. I am sending commands from my computer with a TCP apps.
With SERIN, I retrieve the string with an array.
I would like to compare this array within a if statement.
Exemple :
string var byte(4)
if string="ok" then
goto "do something"
endif
How can I do this?
Thanks
Chris
I am using Parallax Wifi module in transparent mode. I am sending commands from my computer with a TCP apps.
With SERIN, I retrieve the string with an array.
I would like to compare this array within a if statement.
Exemple :
string var byte(4)
if string="ok" then
goto "do something"
endif
How can I do this?
Thanks
Chris
Comments
If you just want to look for a single case ("ok"), you can just do two compares but if you want to cover many input words, read the thread.
It will do the job.
Chris