Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Fired a rule when there is no rule fired

Avatar

Level 1

Hi, i have a special question and i hope that you can help me. 

I create a rule and i used 'DataElement Change' to set up it. 

I would like to add a condition to say fire this rule only when there is no other rule fired 

Rimm_0-1639063770846.png

I don't know how to proceed and wich condition type to select in order to do that? with custom code maybe ? how can i verify that there is no rule fired already ? 

Thank you very much.

Rim

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Adobe Launch itself doesn't have any ability to let you specify such a condition.

But here's one way where you could do this with some coding: use a JavaScript variable as a flag.

  1. In every Rule, add an Action that sets a JavaScript variable in the page.
  2. Then in this Data Element Change rule, check for the value of that JavaScript variable.
    1. If the variable is found with an expected value, then that means some other Rule(s) had fired, so DO NOT fire this Data Element Change rule.
    2. If the variable is not found or does not have an expected value, then fire this Data Element Change rule.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Adobe Launch itself doesn't have any ability to let you specify such a condition.

But here's one way where you could do this with some coding: use a JavaScript variable as a flag.

  1. In every Rule, add an Action that sets a JavaScript variable in the page.
  2. Then in this Data Element Change rule, check for the value of that JavaScript variable.
    1. If the variable is found with an expected value, then that means some other Rule(s) had fired, so DO NOT fire this Data Element Change rule.
    2. If the variable is not found or does not have an expected value, then fire this Data Element Change rule.