Variable within variable?

I’ve searched around and wasn’t able to find any solutions to my problem, which probably just means I’m going about this wrong way, but here it goes…

I have a bunch of variables named like so:

box3W… and so on

I’d like to use a loop to call each of these variables without actually having to write them all out. The code below obviously doesn’t work, but hopefully gives you an idea of what I’d like to do.

i = 0
total = 7
while (i < total) {

So this traces out the names of my variables, but I’d like to trace out the value of the variables instead. Truly appreciate any advice. Thanks!