.. _equals: ====== Equals ====== Checks if a field equals or not equals the configured value. .. code-block:: typoscript Example Code: validators { DefaultValidator { model = DefaultValidator config { fields { privacy_policy.errorChecks { equals { model = Equals value = Yes } } newsletter.errorChecks { equals { model = Equals equal = False value = No } } } } } } **Properties** .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **equal** - Set false to negate the comparison * - - * - *Mandatory* - False * - *Data Type* - Boolean * - *Default* - True .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **value** - Value that must be equal to the value of a given field * - - * - *Mandatory* - False * - *Data Type* - String * - *Default* - Empty String .. toctree:: :maxdepth: 2 :hidden: