Whats a good way to test to see if a variable contains only numbers, or text.

I got one variable, and I got to do something different with it depending on whether or not it contains text or numbers.