It checks to see the entry will behave as an integer. Strictly speaking, 5.0 is still floating point, but when used with non-floating point operations, the .0 just gets truncated and all is well. And I don't think I'm really "overloading" ||. If there wasn't a script for this and we typed this out, we would use:
And now it makes sense. I make my "math" scripts, including roundf and isint to behave like all the other operators: /isint 5.5 outputs nothing to the console, but /echo (isint 5.5) works.
[SELECT ALL] Code:
if (|| (&& (!=f (divf $arg1 1) 0.0) (=f (modf $arg1 1)) 0) (=f $arg1 0) ) [if it's an integer] [if it isn't]