IsInt
From AutoIt Wiki
Checks if an expression is an integer type. Adapted from AutoIt docs.
Contents |
Syntax
$chk = IsInt(expr)
Parameters
| expr | The expression to be checked. |
Return Value
Success: Returns 1.
Failure: Returns 0 if expression is not an integer.
Example
IsInt(-12345) ;returns 1
IsInt(3.0000) ;returns 1
IsInt("5432") ;returns 0 since is a string
IsInt(7.5 - 4.5) ;returns 1 since evaluates to integer 3