Skip to main content

Setting up multiple 'If' conditions


Ali_Alkan1

Would it possible to add more than one ‘if’ condition, similar to what we can do with JavaScript and other programming languages, enabling us to check multiple variables simultaneously? For example, determining which page to navigate to based on the selected radio button.

This topic has been closed for comments

5 replies

tank666
  • 4868 replies
  • June 30, 2023

Yes, of course, you can add multiple conditions.


Ali_Alkan1
  • Author
  • 4 replies
  • June 30, 2023

I’ve just found a workaround. For anyone who is struggling, you can’t populate the ‘if’ statements within a single condition. You need to create multiple conditions to have more than one ‘if’ statements.


Ben_Craig

I can get two If statements to work, but not 3. Also, only one of the 2 conditionals can have an else or it breaks.


tank666
  • 4868 replies
  • August 2, 2023

As you can see in the screenshot above, the interaction details show more than two if statements, and they all work. This means that you may have written the conditions incorrectly.

All existing conditional actions can have an else statement. It’s just that at the moment advanced prototyping is buggy, and, therefore, it can, for example, duplicate actions from one else block to another, or the same variant will be selected in the “Change to” action.


  • 0 replies
  • August 5, 2023

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings