I have a program that reads in serial information from a device and that works fine but i want to make a statement something like;
if (first character = R)
do something
if (first character = T)
do something else
I hope this makes sense. Basically all i need to do is have a way to detect the first character from a variable, then remove that character from the variable.
Thanks
Assuming we are talking about a string: