String as a numerical value

Hello,

What is the syntax to check if a string is a numerical value or a text value?

Also, is there a way to know when user aborts the script?

Thanks!

put myvar is a number

I don’t understand this question. Know where? The script has been aborted, so it’s not doing anything else. And aren’t you the user?

Some information needs to be written to a file. So that why I ask is there a way to detect when the ‘Abort’ button is pushed.