How do you check if a variable is a integer?

I am trying to do this for a timer.

If mod(your number, 1) is = 0 it is an integer

Doesn’t that only work with numbers, not variables?

Why wouldn’t that work with a variable?

Maybe what he meant to say is it (only) works with numerical arguments, but what if the argument were be null or a string?