Conditions: Persisting Values Across Conditions in Journey Optimizer and Else If Blocks in Conditions' Advanced Expression Editor and Looping | Community
Skip to main content
Level 2
September 21, 2023
Solved

Conditions: Persisting Values Across Conditions in Journey Optimizer and Else If Blocks in Conditions' Advanced Expression Editor and Looping

  • September 21, 2023
  • 2 replies
  • 1485 views

1. Is there a method by which I can persist values across journey conditions using advanced expression editor?

2. Can I use else if blocks in advanced expression editor?

3. I want to iterate through a set of conditions, but AJO does not allow for looping. Any ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by akshaaga

@jm_11 ,

 

In AJO, the Advanced Expression Editor is typically used to define conditions and expressions for decision splits within a journey. It doesn't natively support the persistence of values across multiple conditions. However, you can work around this limitation by creating attributes within the platform to store and update values that need to persist across conditions. These attributes can be set, updated, and checked as the journey progresses.

 

Else If Blocks in Advanced Expression Editor: AJO's Advanced expression Editor does not directly support "else if" blocks. Decision splits are typically handled using a series of individual conditions, and they follow a strict "if-then-else" logic. You can have multiple conditions and specify what should happen if each condition is met, but it may not have the same visual structure as traditional "else if" blocks.

 

Iterating Through Conditions: Adobe Journey Optimizer doesn't have native looping capabilities. To iterate through a set of conditions, you would generally set up multiple individual decision splits for each condition you want to evaluate. While this can lead to a more complex decision tree, it allows you to evaluate each condition separately.

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
September 25, 2023

Hello @jm_11 

 

You can use If else for conditions and Each function to loop through arrays.

Each function documentation: Helpers | Adobe Journey Optimizer

If function documentation: Helpers | Adobe Journey Optimizer

Manoj  | https://themartech.pro
jm_11Author
Level 2
September 25, 2023

These functions are for personalization for content management purposes unfortunately, and not available for conditions withing the journey.

akshaaga
Adobe Employee
akshaagaAdobe EmployeeAccepted solution
Adobe Employee
October 14, 2023

@jm_11 ,

 

In AJO, the Advanced Expression Editor is typically used to define conditions and expressions for decision splits within a journey. It doesn't natively support the persistence of values across multiple conditions. However, you can work around this limitation by creating attributes within the platform to store and update values that need to persist across conditions. These attributes can be set, updated, and checked as the journey progresses.

 

Else If Blocks in Advanced Expression Editor: AJO's Advanced expression Editor does not directly support "else if" blocks. Decision splits are typically handled using a series of individual conditions, and they follow a strict "if-then-else" logic. You can have multiple conditions and specify what should happen if each condition is met, but it may not have the same visual structure as traditional "else if" blocks.

 

Iterating Through Conditions: Adobe Journey Optimizer doesn't have native looping capabilities. To iterate through a set of conditions, you would generally set up multiple individual decision splits for each condition you want to evaluate. While this can lead to a more complex decision tree, it allows you to evaluate each condition separately.