cancel
Showing results for 
Search instead for 
Did you mean: 

Google Script Starter with more than one condition

cansari
Community Member

How can you add two or more conditions to a Starter and Action?  For example, I only want the Action to run if the two or more conditions are met.  I can't figure out how to get the syntax to work with more than one condition.  

Should it be "condition" or "conditions"?

Should there be a dash before each "type"? 

How should the syntax look?

Thanks!

 

1 REPLY 1

Nes58
Community Member

condition:
  type: and
  conditions:
     - type: device.etc

     - type: etc