isint operator - 05/02/04 02:57 AM
hi!
how bout a ISINT operator thatd work just like isnum but with integers of real numbers?
as far as im concerned, itd be a very useful addition since i do quite a lot of error checking in my scripts.
for now when i need to check if a parameter is an integer, i match it against a regex like ?\d+$
it does the trick but this is the suggestions forum, and using this new method would let you check in a single comparison if the said parameter is not only an integer but also if its in a specified range (optional, just like isnum).
what does everyone think?
how bout a ISINT operator thatd work just like isnum but with integers of real numbers?
as far as im concerned, itd be a very useful addition since i do quite a lot of error checking in my scripts.
for now when i need to check if a parameter is an integer, i match it against a regex like ?\d+$
it does the trick but this is the suggestions forum, and using this new method would let you check in a single comparison if the said parameter is not only an integer but also if its in a specified range (optional, just like isnum).
what does everyone think?