Hiding layers with an action

I have a bunch of layers named:


When I have a scene variable set to 1, is it possible to write down an action to hide a whole set of layers like for example:
Hide layer “Menu_Research” +ToString(Range(2-9))

The above doesn’t work or exist, but is there a different way to write it down and achieve what I’m looking for?


There is,
You can make a repeat loop.
Set variable (count) to 1
Repeat 9 times
Hide layer “research”+variableString (count)
Change variable(count) add 1

But the setup is pretty unnecessary for just 10 layers imo.

you can try something like this, and adjust the number of repeats