Hi @fernandoshake,
You’d need to create a program rule with the expression d2:hasValue(#{ageinyears}) > 0 && d2:hasValue(#{ageinyears}) < 100
and then the action is to show error.
You can watch the Program Rules session below to learn more about the program rules:
Good luck!