atomic-field-condition

This is for:

Developer
In this article

The atomic-field-condition component takes a list of conditions that, if fulfilled, apply the template in which it’s defined.

The condition properties can be based on any top-level result property of the result object, not restricted to fields (e.g, isRecommendation).

Properties

Property Attribute Description Type Default

conditions

A list of conditions that must be fulfilled for this template to be selected.

ResultTemplateCondition[]

[]

ifDefined

if-defined

Verifies wheter the specified fields are defined.

string | undefined

ifNotDefined

if-not-defined

Verifies whether the specified fields are not defined.

string | undefined

mustMatch

must-match

Creates a condition which verifies that a field’s value contains any of the specified values.

Record<string, string[]>

{}

mustNotMatch

must-not-match

Creates a condition which verifies that a field’s value doesn’t contain any of the specified values.

Record<string, string[]>

{}