FieldCondition

A single condition on a dependency field's value. Conditions are combined into a ConditionalRule and evaluated together with logical AND.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The path of the field whose value determines this condition, for example companyInfo.businessType.

Link copied to clipboard

The comparison operator to apply between the dependency field's value and Values. Valid values are EQUALS, NOT_EQUALS, IN, NOT_IN, HAS_VALUE, and NO_VALUE. Operators not in this list are treated as evaluating to false, which causes the containing rule to be skipped. This allows forward-compatible additions of new operators without breaking older SDK clients.

Link copied to clipboard

The values to compare the dependency field's value against. Required for the EQUALS, NOT_EQUALS, IN, and NOT_IN operators. Omitted for HAS_VALUE and NO_VALUE, which test only presence.

Functions

Link copied to clipboard
inline fun copy(block: FieldCondition.Builder.() -> Unit = {}): FieldCondition
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String