The string object also has a .IsDigits() and a .IsLetters() method, so you could simply do "q var !string.isdigits()" which will return TRUE if the string is only digits and FALSE otherwise, or "q var !string.isletters()" which will return TRUE if the string is only letters and FALSE otherwise.
The string object also has a .IsDigits() and a .IsLetters() method, so you could simply do "q var !string.isdigits()" which will return TRUE if the string is only digits and FALSE otherwise, or "q var !string.isletters()" which will return TRUE if the string is only letters and FALSE otherwise.