I’m working on a workshop, and I have a variable with two values (value1 and value2), along with two pages and a button. I’m trying to make it so that based on the selected value, when the user clicks the button, it will direct them to a specific page
I don’t think it is currently possible to set variable-based events in Workshop buttons. However, you could set up the button group to have 2 buttons, one for each value, with conditional visibility so that eg button1 would be visible only if value1 is selected. And then each button would be also set with an event to switch to a different page.
I also think you cannot have variable-based events; however, I would approach it by initiating a string variable with a variable transform.
Set up an if/else statement that outputs a string. The conditions depend on the selected value, assuming the selected variable can be accessed via a variable.
Then make your button set variable with your page variable as the destination and this transformer string variable as the source