Hi,
Thank you for your enquiry.
I'm sure there is an easier way of achieving this, but the following script actions should hopefully suffice.
Code:
count = 0
len = input.length
for (n=0;n<len;n++) {
current = input.charAt(n)
if (current >= "0" && current <= "9") {
count++
}
}
if (count > 0) {
Debug.trace("Contains numbers")
} else {
Debug.trace("No numbers")
}
where
input is the variable you are trying to check. You can obviously replace the first Debug.trace() function with whatever actions you want to take place when the string contains numerical values, and replace the second Debug.trace() function with the actions that should occur when the variable contains no numbers.
Kind regards,