Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: DanRosenblattBRAINscript does not have an isInteger function, but, the fieldType() function will return the value type of the field.
If you have a field of numbers stored as strings, and you want to see which are whole numbers, you can accomplish this test by adding another condition to isNumber().
Try something along the lines of
('field'.isNumber() and 'field'.double().floor() == 'field'.double())
The floor() function evaluates to the largest integer less than or equal to the parameter, essentially removing anything after a decimal.