To test whether a variable is e.g. a number greater than 0, you would write:
((i > 0))
But how would I test if the variable is not a number greater than 0?
EDIT
Sorry for the typo, meant not a number greater than 0.
EDIT 2
Sry for the poor question. The value of the variable is passed as a commandline argument, so it may be a number or not. This also needs to be checked.
For checking on not being number, you have to test with regex. I have used
-5instead0just to demonstrate more general case (My assumption is that you use integers):If you want to test for non-integers, you have to clarify in your question what is considered number.