This demonstrates a very basic custom validator, which returns correct if the submitted answer is positive.

This shows a basic “isPositive” validator, that simply checks to see if the input in positive.
Notice that the validator completely overrides the expected answer, as the correctness of the answer is determined by the validator returning true/false, and this validator doesn’t actually use the provided answer in any way.

Enter a number!