inSegment

Checks if an individual belongs to a given segment.

The segment name must be a string constant. It cannot be a field reference nor an expression.

Segments are defined in the Adobe Experience Platform. The expression editor provides an autocompleted list of segments.

NOTE

You can retrieve up to 100 segments.

Category

Adobe Experience Platform

Function syntax

inSegment(<parameter>)

Parameters

Parameter Description Type
Segment The segment name <string>

Signature and returned type

inSegment(<string>)

Returns a boolean.

Example

inSegment("men over 50")

Explanation:

The function will return true if the individual within the journey instance is part of the Adobe Experience Platform segment named “men over 50”, false otherwise.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free