Skip to main content
This page will explain what conditions are and how they control when a transformer runs. The following conditions are available:
NameDescription
Array or object: ContainsChecks if a value exists within an array or object.
Array or object: Contains wildcard matchChecks if an array or object contains a matching value.
Array or object: Does not containChecks that an array or object does not contain a value.
Array or object: Does not contain wildcard matchChecks that an array or object does not contain a matching value.
Check conditions on mapped valueApplies mappers to the data and checks all conditions on the result.
Does not equal (Loose)Checks if the values are not loosely equal. For example, 12 and ‘12’ are considered equal.
Does not equal (Strict)Checks if the values are not strictly equal (different value or type).
Equals (Loose)Checks if the values are loosely equal, allowing type coercion. For example, 12 equals ‘12’.
Equals (Strict)Checks if the values are strictly equal (same value and same type).
Is emptyChecks if the value is null, an empty string, or an empty array.
Is not emptyChecks if the value is not null, not an empty string, and not an empty array.
Is not one ofChecks if a value is not one of the given items.
Is one ofChecks if a value is one of the given items.
Is valid JSONChecks if the value is valid JSON.
Is valid URLChecks if the value is a valid URL.
Is valid UUIDChecks if the value is a valid UUID.
Is valid credit card numberChecks if the value is a valid credit card number.
Is valid date/timeChecks if the value is a valid date/time.
Is valid email addressChecks if the value is a valid email address.
Logic: AndChecks that all conditions match.
Logic: NotChecks that no conditions match.
Logic: OrChecks that at least one condition matches.
Logic: XorChecks that exactly one condition matches.
Number: Greater thanChecks that a number is greater than the given value.
Number: Greater than or equalsChecks that a number is greater than or equal to the given value.
Number: Less thanChecks that a number is less than the given value.
Number: Less than or equalsChecks that a number is less than or equal to the given value.
Storage: Exists in storageChecks if the value is present in storage.
String: Contains only alphabetic charactersChecks that a string contains only alphabetic characters.
String: Contains only alphanumeric charactersChecks that a string contains only alphanumeric characters.
String: Contains only numbersChecks that a string contains only numbers.
String: Does not match regular expressionChecks that a string does not match the supplied regular expression.
String: Does not match wildcard patternChecks that a string does not match the supplied wildcard pattern.
String: Length betweenChecks that a string’s length is between a minimum and maximum value.
String: Length equalsChecks that a string’s length matches the given value.
String: Matches regular expressionChecks that a string matches the supplied regular expression.
String: Matches wildcard patternChecks that a string matches the supplied wildcard pattern.
Type: ArrayChecks that the value is of type array.
Type: BooleanChecks that the value is of type boolean.
Type: FloatChecks that the value is of type float.
Type: IntegerChecks that the value is of type integer.
Type: NumericChecks that the value is numeric.
Type: ObjectChecks that the value is of type object.
Type: StringChecks that the value is of type string.
Validates against JSON schemaChecks if the data is valid according to the supplied JSON schema.