Ooooh, I see what you mean. Yes! You can use a loop, and combine it with loopindex. Eg:
On start of layout
For "values" from 1 to <However many highscores you have>
|-> Check item "highscore"&loopindex
The [&] operator allows you to build a string, and [loopindex] places the step number of the current iteration of the loop.
Bear in mind you will still need individual actions for each of the rest of the item checks, however, so I would recommend using a Dictionary to store the values, and passing the Dictionary.AsJSON only as a localstorage value.