nl_tokens: A helper function to call $setValidity and return the value / undefined a pattern that is repeated a lot in the input validation logic .
pl_tokens: function validate ( ctrl , validatorName , validity , value ) { ctrl . $setValidity ( validatorName , validity ) ; return validity ? <mask> : undefined ; }