In reaction to the first post, I would think this code is better
 Code:
Dim $input
CLS
?"input subnet to search?"
Do
  Gets $input
Until 255 >= $input AND 0 <= $input

To get the right implicit conversion of $input