valitron icon indicating copy to clipboard operation
valitron copied to clipboard

Add example to docs of custom rule comparing two supplied pieces of data?

Open domhnallw opened this issue 9 years ago • 1 comments

Hi all:

Would it be possible to add an example of a custom rule to the README that shows how to compare two items of supplied data, in the same way as the already-defined equals and different rules do? Even something simple like a lessThan or greaterThan rule would be great to illustrate how that would work.

Thanks :)

domhnallw avatar Oct 06 '15 08:10 domhnallw

While we're on the subject, being able to use two items of data to check another (such as a 'between' method to check if a supplied value is between two others) would be great too :)

domhnallw avatar Oct 06 '15 08:10 domhnallw