Skip to content

SDK API Reference / SegmentRule

Interface: SegmentRule

Segment filtering rule - supports And/Or and Composite. Composite encodes arbitrary boolean structure via expr (e.g. "1 and (2 or 3)") over conditions ordered by identifier (index 0 = '1' or 'A', index 1 = '2' or 'B', ...). Per td-cdp-api's CompositeConditionParser: lowercase and/or, identifiers are digits (1..9) OR uppercase letters (A..Z), not mixed.

Properties

conditions

conditions: SegmentCondition[]


description?

optional description?: string


expr?

optional expr?: string


type

type: "And" | "Or" | "Composite"