*Requires COGS v5.3.0 or above

When you're building a behaviour using the States Match condition, historically it has only been possible to check the state of all conditions before it triggers your actions, unless you use a custom condition.

Previously, if you wanted to check if any of the conditions were true, you would have to write it as custom code using the operator || which means 'logical or'.

E.g. The above condition would read:

→ When... Button 1 is On OR Buttons 2 is On OR Buttons 3 is On OR Buttons 4 is On

From COGS 5.3, this can be done in your States Match conditions without the need for creating a custom condition. If you create a States Match in When, If/Then/Otherwise or Loop, it will default to match all conditions so the actions will run when all conditions are met, but if you change it to any, it will then run your actions when any of the set conditions have matched.

E.g. The above condition would also read:

→ When... Button 1 is On OR Buttons 2 is On OR Buttons 3 is On OR Buttons 4 is On