Use this function when you need to be sure the expression is of TYPE INTEGER.

 

Syntax:

value = IsInteger( expression )

 

Parameter:

Description:

expression

Expression you need to check

value

Returns True when the expression is an Integer value

 

Example:

VARIABLES: VariableOne TYPE: STRING
VariableOne = "ABC"
 
IF ( IsInteger(variableOne) ) THEN
  print variableOne, " is an integer."
ELSE
  print variableOne, " is NOT an integer."
ENDIF

 

Results:

  This prints "ABC is NOT an integer."

 

Links:

AsFloating, AsInteger, AsSeries, AsString, IsFloating, IsString

See Also:

Data Groups and Types

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 42

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software