tridion-sites-extensions-api-docs

Home > @tridion-sites/models > ComponentPresentation > conditions

ComponentPresentation.conditions property

If conditions are specified for a Component Presentation, these are published as TCDL code. This TCDL code results in Content Delivery code that only renders the Component Presentation if the user falls in the given Target Groups.

Signature:

get conditions(): ReadonlyArray<TargetGroupCondition> | undefined;