Validators

The purpose of a Validator is to return either true or false.

Validators are used in Effects where they validate if an Effect will actually get executed.

diagram

When creating a new Validator, the errorMessage is left unset. This is because you maybe want to reuse an already existing error message.

Validator Types

Combine

combines multiple validators

Unit Compare Vital

used to validate a vital.