I have a string that could be a number or text. If it's a number I want to do a function with it, but if it's just text I want to display the text. If I just try
variable = mValue.toNumber();
and it's text then it crashes. Is there a way to try to convert and catch the error?