hello

i want to parse string from gsmbuffer variable like this
Code:
ip:
HSEROUT["AT+CMGL",13,10]'get the msg from phone

LCDOUT $FE,1,"query" 'show query on lcd 

HSERIN 3000,IP,[WAIT("REC UNREAD"),skip 41,STR GSMBUFFER\16\13] 'wait for rec unread, and get the string gsmbuffer 
LCDOUT $FE,1,str poruka\16 'show it on lcd
the idea is to send sms "XYZ" which simulates 3 output's, and that means there are all switched ON, and if i send sms "Xyz" then first output is ON and others are OFF...

help me with some guidelines!!!!

thx in advance