Checks if a value may be correctly converted to an integer using toInteger.
s = "123"; if isValidInteger(s) then i = toInteger(s); else println("Not a number"); endif;