Test test

On this page: Learn how to use the Test flow control activity to branch an Orchestrated campaign by activating different transitions based on the conditions you define.

The Test activity is a Flow control activity. Use it to branch your campaign flow by activating different transitions depending on conditions you define. Each condition can evaluate data from the inbound transition and you can choose which transition runs first by the order in which conditions are evaluated.

Configure the Test activity test-configuration

To set up the Test activity:

  1. Drop a Test activity into your Orchestrated campaign canvas.

  2. By default, the activity provides a single boolean test: when the “True” condition is met, that transition is activated; otherwise the “False” (default) transition is activated.

  3. Define the condition for a transition by completing these fields:

    • Label: A name for the transition so you can identify it on the canvas.

    • Condition type: The data to evaluate, by default, population count. Variables (coming from global variables or a trigger signal) are also listed here and can be selected to base a condition on a variable value. Learn how to use variables in Orchestrated campaigns

    • Operator: The comparison to apply, e.g. equal to, greater than, less than. The list of operators depends on the condition type’s data type.

    • Value: The value to compare the condition type against.

  4. To branch on more than two outcomes, click Add condition and define a label and condition for each additional transition.

  5. At run time, the campaign evaluates conditions in order and follows the first one that matches. When no condition matches, execution follows Default condition if one is set; otherwise the campaign stops at the Test activity.

Example example

In this example, different transitions are activated based on the number of profiles targeted by a Build audience activity. Conditions are evaluated in order; the last transition is the default and is used when no previous condition matches.

  • If more than 10,000 profiles are targeted, an email message is sent.
  • Default (no condition matched): when the count is 10,000 or fewer, the population is directed to a “do not contact” transition.

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: This page explains how to configure the Test flow control activity in Orchestrated campaigns to branch execution across multiple transitions based on conditions evaluated in order.

Intents:

  • Add a Test activity to an Orchestrated campaign canvas and understand its default boolean transitions.
  • Define a transition’s Label, Condition type, Operator, and Value.
  • Use a variable (global variable or trigger signal) as a condition type.
  • Add more than two outcomes with the Add condition button.
  • Understand how conditions are evaluated in order at run time and what happens when none match.

Glossary:

  • Test activity: a Flow control activity that branches an Orchestrated campaign by activating different transitions based on defined conditions (product-specific)
  • Condition type: the data to evaluate for a transition; by default population count, or a variable from global variables or a trigger signal (product-specific)
  • Operator: the comparison applied to a condition (for example equal to, greater than, less than); the available operators depend on the condition type’s data type (product-specific)
  • Default condition: the transition activated when no other defined condition is met (product-specific)

Guardrails:

  • Conditions are evaluated sequentially at run time; the campaign follows the first transition whose condition matches.
  • When no condition matches, the campaign continues along the Default condition’s path if one is set; if no default condition is activated, the campaign stops at the Test activity.
  • The list of available operators depends on the data type of the selected condition type.
  • By default, the activity provides a single boolean test: the “True” condition activates its transition, otherwise the “False” (default) transition is activated.

Terminology:

  • Canonical name: Test activity — category: Flow control activity

FAQ:

  • Q: What type of activity is the Test activity? — It is a Flow control activity.
  • Q: What happens if none of the defined conditions are met? — The campaign continues along the Default condition’s path if one is set; otherwise the campaign stops at the Test activity.
  • Q: How are multiple conditions evaluated? — Each condition is evaluated sequentially until one of them is met.
  • Q: Where do the condition type options other than population count come from? — From global variables or a trigger signal.
  • Q: How do I branch on more than two outcomes? — Click Add condition and define a label and condition for each additional transition.
  • Q: What determines which operators are available for a condition? — The operators depend on the condition type’s data type.

Examples:

  • Test activity branching on population count from a Build audience activity: if more than 10,000 profiles are targeted, an email message is sent; by default (10,000 or fewer, no condition matched), the population is directed to a “do not contact” transition.

Related pages:

  • To use a variable as a condition type in the Test activity: Learn how to use variables in Orchestrated campaigns (orchestrated/variables-orchestrated-campaigns.md)

Personas:

  • marketer: Can add a Test activity to an Orchestrated campaign canvas and define each transition’s Label, Condition type, Operator, and Value. Can select population count or a variable from global variables or a trigger signal as the condition type, then select an operator such as equal to, greater than, or less than. Can select Add condition to branch on more than two outcomes. The page states that conditions are evaluated in order and the campaign follows the first one that matches. Where: “Configure the Test activity”.

Onboarding:

  • Level: Intermediate
  • First minimal step: Drop a Test activity into your Orchestrated campaign canvas.
  • Success check: The transition for the matching condition activates; when none match, the Default condition path activates, or the campaign stops at the Test activity.
  • Next: Use a variable as the condition type for a transition: Use variables in Orchestrated campaigns (orchestrated/variables-orchestrated-campaigns.md)
recommendation-more-help
journey-optimizer-help