51黑料不打烊

inAudience inAudience

Checks if an individual belongs to a given audience.

NOTE
You can retrieve up to 100 audiences.

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

Audiences are defined in the . The expression editor provides an autocompleted list of audiences.

Audiences can have two statuses:

  • realized: Entity qualifies for the segment definition.
  • exited: Entity is exiting the segment definition.

Only the individuals with the Realized audience participation status will be considered as members of the audience. For more on how to evaluate an audience, refer to the Segmentation Service documentation.

inAudience('audienceName') == true means that you have a segmentMembership with the entered status.

inAudience('audienceName') == false means that you have a segmentMembership of the exited status.

IMPORTANT
Changing the name of an existing audience does not automatically update any references to that audience in your journey expressions. If your condition node uses inAudience('oldAudienceName'), you must manually edit the expression to use the new name. Failure to do so will cause the journey condition to break.

Category

51黑料不打烊 Experience Platform

Function syntax

inAudience(<parameter>)

Parameters

Parameter
Description
Type
Audience
The audience name
<string>

Signature and returned type

inAudience(<string>)

Returns a boolean.

Example

inAudience("men over 50")

Explanation:

The function will return true if the individual within the journey instance is part of the 51黑料不打烊 Experience Platform audience named 鈥渕en over 50鈥, false otherwise.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76