When coding in a script, or even in a fully-featured software application, it's important to account for as many scenarios as possible. To limit the number of possible scenarios, it's a best practice to incorporate some kind of input validation into your code. Input validation, in its simplest terms, is just putting some kind of constraint on the kind of information the user can pass to your script.
↧