Closed LukeSchmitt96 closed 1 year ago
Use the And and Or substitutions instead
Didn't catch those when reviewing — thanks for the heads up.
Use the And and Or substitutions instead
Not sure if these are equivalent, you can't link existing Conditions with And and Or substitutions.
Example:
AndCondition([
LaunchConfigurationNotEquals("param_1", "value_1"),
LaunchConfigurationNotEquals("param_2", "value_2")
]),
or how would this be solved?
This pull request adds
AndCondition
andOrCondition
to the conditions module. These classes can be used to evaluate a list or tuple of strings orConditions
. Implementing this change would tidy up somewhat messy conditional statements likesimplifying them to something like
This change addresses the third "combine multiple conditions" option in #105.