rule (validation rule)

A condition to evaluate, plus an action to perform when the condition is met (or not met). Normally used to validate field values.

You can:

You can also create field rules for invoices, but these have a somewhat different purpose, since they are part of field exceptions.