Wocart

@wocart/theme v4.1.0


@wocart/theme / index / FieldCondition

Type Alias: FieldCondition

FieldCondition = { equals: ConditionValue; field: string; } | { field: string; in: readonly ConditionValue[]; } | { all: readonly FieldCondition[]; } | { any: readonly FieldCondition[]; } | { not: FieldCondition; }

When a field applies, from the values of the fields beside it (the same component's, list item's or settings'): equal to a value, one of several, all or any of other conditions, or not one. A closed format, never an expression; isFieldVisible evaluates it. A hidden field keeps its value.