Serial read wildcard?

PaulS,

I know it won't work, but am stuck trying to figure out how to make something work. It doesn't need to be the ,...I just need it to know it is getting coordinates, and they won't always be the same.

Maybe I can do something like this?

stringOne = "(0,0)";
if (stringOne.compareTo(inputString) > 0 ) {
  // parse out x and y from inputString here
  // and always have the coordinates be greater than 0,0  
}

Or maybe simpler:

stringOne = "(0,0)";
if (inputString >= stringOne ) {
  // parse out x and y from inputString here
  // and coordinates greater than or equal to 0,0 will work  
}

Problem now is that sometimes I'll want negative coordinates....