isValidInteger

Checks if a value may be correctly converted to an integer using toInteger.

Usage

    s = "123";
    if isValidInteger(s) then
        i = toInteger(s);
    else
        println("Not a number");
    endif;