Difference between revisions of "Constraints"
Line 3: | Line 3: | ||
Constraints can be placed on macros to allow or prevent the entire macro firing based on the set condition(s). You can also add constraints directly to individual triggers and actions from the 'Edit Macro' screen, by clicking on the trigger/action and selecting "Add constraint" | Constraints can be placed on macros to allow or prevent the entire macro firing based on the set condition(s). You can also add constraints directly to individual triggers and actions from the 'Edit Macro' screen, by clicking on the trigger/action and selecting "Add constraint" | ||
− | A macro/action will only run if the <strong>constraint condition is true.</strong> | + | A constraint is evaluated at the point a trigger fires or actions runs and a macro/action will only run if the <strong>constraint condition is true.</strong> |
− | |||
+ | By default if adding more than one constraint to a macro they will be combined with an AND condition (e.g. all added constraints must be true). This can be changed in the dropdown in the constraints title to an OR condition. In this case only one of the added constraints needs to be true for the macro to run. | ||
== List of Constraints == | == List of Constraints == | ||
[[Airplane Mode]] | [[Airplane Mode]] |
Revision as of 22:35, 2 February 2021
Constraints are optional and can be used to allow or prevent a macro/action from running based on certain conditions.
Constraints can be placed on macros to allow or prevent the entire macro firing based on the set condition(s). You can also add constraints directly to individual triggers and actions from the 'Edit Macro' screen, by clicking on the trigger/action and selecting "Add constraint"
A constraint is evaluated at the point a trigger fires or actions runs and a macro/action will only run if the constraint condition is true.
By default if adding more than one constraint to a macro they will be combined with an AND condition (e.g. all added constraints must be true). This can be changed in the dropdown in the constraints title to an OR condition. In this case only one of the added constraints needs to be true for the macro to run.