#Multiple triggers

1 messages · Page 1 of 1 (latest)

upbeat tinsel
#

I was wondering if it it possible to create a condition on which trigger has activated the action part. When triggerNext has been called I want to do action X, if it was triggerReset i want to do action Y.

blueprint:
# ...
  input:
    triggerNext:
      name: Trigger next
      selector:
        trigger: {}

    triggerReset:
      name: Trigger reset
      selector:
        trigger: {}

mode: single

trigger:
  - triggers: !input triggerNext
  - triggers: !input triggerReset

action:
# ...
stuck canyon
#

Yes, look at trigger IDs

upbeat tinsel
#

Can i label/rename those id's, by default it takes the index 🙂

stuck canyon
#

Yes

#

Have a look at the trigger docs 😉

upbeat tinsel
#

Could only find examples without the !input name, adding it myself to the object tells me it has an invalid syntax

stuck canyon
#

You'd need to pass it in the input then

brazen charm
#

I think the id would have to be added by the user, not at the blueprint level

#

it would be part of the trigger object they pass in

#

using indexes would be trouble as well as user could provide more than one trigger in each selector

#

so you wouldn't really be able to tell

#

I think if you want to do this without user intervention you need a feature request to add id option to the trigger selector.