Forum Discussion

ThibaultJeuland's avatar
ThibaultJeuland
Community Member
3 years ago

Several "when" conditions in one trigger

Hi all,

Is there a way to have several "when" conditions in one trigger ? Like "When the user clicks on button OR when the user clicks on button2 ...."

I'm doing the same actions when the user clicks on different items, ad I would like not to create differnet triggers, but to have all my conditions in one.

Thanks :)

  • Each trigger can only have one "when." 

    You can set up one trigger with all the conditions, copy it, select the other button, and paste the trigger to it. Or just copy-and-paste the trigger, and then edit the object being clicked. 

    • ThibaultJeuland's avatar
      ThibaultJeuland
      Community Member

      I was already doing that Judy, but it's so much pain when I have lot's of trigger and modification to do on those ðŸ˜…

      I'm going to try Joanne solution.

      Thanks :) 

       

  • Hi Thibault,

    Although one trigger only have one "when", you can utilize state to trigger one thing by "when any/all objects are in different states" if all your conditions are clicking on objects. Below is an example to trigger a layer when user click any of the BTNs.