Data Validators

Can we check Condition in a Data validator,