IsInteger Function

Top  Previous  Next

Returns TRUE if the expression is an integer. Use IsInteger  if you want to be sure that a value is an integer.

 

Syntax

 

value = IsInteger( expression )

Parameters

expression

 

the expression to check

 

 

 

returns

 

true if the expression is an integer value

 

Examples

The following examples illustrate the use of the IsInteger  function:

variableOne = "ABC"

 

IF ( IsInteger(variableOne) ) THEN

   print variableOne, " is an integer."

ELSE

   print variableOne, " is NOT an integer."

ENDIF

 

' This prints "ABC is NOT an integer."