Rules - if ANY item changed state

Hello,
I want to write a rule, that triggers something when one of my defined items changes state. Do I have to use OR-functions for all my defined items like

rule "TEST"
when
Item test_item_1 changed state
OR
Item test_item_2 changed state
OR
Item test_item_3 changed state
then
//...do something
end

Is there another solution, where I do not need to list all the items?
Thank you guys

You can define a group and then use it like this:

when
         Member of gTestGroup changed
then
....
1 Like
Item test_item_1 changed state

Is incorrect and a syntax error, you should be using:

Item test_item_1 changed

Thank you, the code I posted was just for example to find a solution.

As long as you don’t use different requirements for different items, simply put all Items to a group and use Member of Group changed instead:

Group gMyGroup
Switch test_item_1 "Test Item 1" (gMyGroup)
Switch test_item_2 "Test Item 2" (gMyGroup)
Switch test_item_3 "Test Item 3" (gMyGroup)

rule:

rule "test rule"
when
    Member of gMyGroup changed
then
    // do something if one of the items changed
end