I want to see how people would approach this in another way.
Say on a WebForm/WinForm, you have about 10 fields, and you want a different error message for each of them even though all you're testing is that it's filled in, for example "Please fill in your name", "Please fill in your address", etc...
Normally you'd do a bunch of if's, but it gets kind of messy and your brain tells you that there must be another way of doing this.
How would some go about handling this?