Const
(string) - The name of the field to evaluate the condition against.
(ProductTemplateCondition) - A function that takes a Product as an argument and returns "true" if the value for the specified field is equal to any of the values in the specified list (case insensitive), and "false" otherwise.
Creates a condition that verifies whether the value of a field is not equal to any of the specified values (case insensitive).
(string) - The name of the field to evaluate the condition against.
(string[]) - The list of values that the field value must not be equal to in order for the condition to evaluate to "true" (case insensitive).
(ProductTemplateCondition) A function that takes a Product as an argument and returns "true" if the value for the specified field is not equal to any of the values in the given list (case insensitive), or "false" otherwise.
Creates a condition that verifies if the specified fields are defined.
(string[]) - A list of fields that must be defined.
(ProductTemplateCondition) A function that takes a product and checks if every field in the specified list is defined.
Creates a condition that verifies if the specified fields are not defined.
(string[]) - A list of fields that must not be defined.
(ProductTemplateCondition) A function that takes a product and checks if every field in the specified list is not defined.
Extracts a property from a product object.
(Product) - The target product.
(string) - The property to extract.
(unknown) The value of the specified property in the specified product, or null if the property does not exist.
Creates a condition that verifies whether the value of a field is equal to any of the specified values (casing insensitive).