Validation functions
Validation functions are the functions in a validation script that check for a condition. The result is a boolean: true
or false
.
To make the validation script more readable, there are many packaged validation functions. The built-in validation functions not only handle the validation, but they also provide a way to produce meaningful error messages. For more advanced functions, you need a closure, more information: Closures.