Boolean Constraints

Constraint Type: All

Evaluates a list of specified sub-constraints to determine if all of them are true.

This constraint is most useful when nested under an Any constraint, as All is the default behavior of constraint lists in VERA.

Required Properties

  • Type: Value must be All

  • Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be true for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Evaluation

  • True: All specified sub-constraints evaluate to True.

  • False: Any specified sub-constraint evaluates to False.

Example

Determine whether both of the following conditions are true:

  • the current record has a Category field value of System

  • the current user is a Manager of the current record type

Constraints": [ { "Type": "All", "Constraints": [ { "Type": "Field Is Equal", "Name": "Type", "Value": "Configuration" }, { "Type": "Field Is One Of", "Name": "Regulation", "Values": ["GxP"] } ] } ]

Constraint Type: Any

Evaluates a list of specified sub-constraints to determine if at least one of them is true.

Required Properties

  • Type: Value must be Any

  • Constraints: A listing of sub-constraints. Only one sub-constraint in this list must evaluate to be true for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Evaluation

  • True: At least one specified sub-constraint evaluates to True.

  • False: All of the specified sub-constraints evaluate to False.

Example

Determine if either of the following conditions are true:

  • the current record has a Category value of System

  • the current record has a GxP value of Y.

{ "Type": "Any", "Constraints": [ { "Type": "Field Is Equal", "Name": "Category", "Value": "System", "Ignore Case": "Yes" }, { "Type": "Field Is Equal", "Name": "GxP", "Value": "Y", "Ignore Case": "Yes" } ] }

Constraint Type: Not

Evaluates a list of specified sub-constraints to determine if all of them are false.

Required Properties

  • Type: Value must be Not

  • Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be false for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Evaluation

  • True: All specified sub-constraints evaluate to False.

  • False: At least one of the specified sub-constraints evaluates to True.

Example

Determine if both of the following conditions are false:

  • the current record has a Category value of System

  • the current record has a GxP value of Y.

{ "Type": "Not", "Constraints": [ { "Type": "Field Is Equal", "Name": "Category", "Value": "System", "Ignore Case": "Yes" }, { "Type": "Field Is Equal", "Name": "GxP", "Value": "Y", "Ignore Case": "Yes" } ] }