If/Then/Else Actions1710 0 4
How do I set up an action to evaluate a variable to perform a certain task if the variable is equal to 1 or True (depending on what type of variable I'm using), but have it perform a different action if the variable is not equal to 1 or True (let's say 0 or 2 or False)? I'm not seeing wher I can enter the "else" part of the action. Do I need to enter it as a separate action? If so, does dominKnow read actions in the order they are stacked?
Comments( 0 )
Answers ( 4 )
Noticed now, we can add multiple actions to the Button Navigation :) (that's the easiest way! but perhaps these additional scripts will come in handy for other reasons?)
Comments( 1 )
You would set up a 2nd action for the 2nd use case. In the cases where you want it to fire both actions if a varaible = X, but only fire action 1 if a second condition is also true and likewise for action 2, then you would add that condition to the "conditions" section of each respective action.
Actions would then be something like
If Variable X = 5 Show element(s) ---> This is the main part of the action
Comments( 0 )
Sharing another solution we recently discovered if anyone is needing to add multiple destinations to a single button based on a variable...
*A pages’s Subeo ID is located in Page Properties.
You can repeat this for each case that you need a different destination.