IOT Cloud variables -> Array -> IOT Cloud

Hi All,

Is there a way of combining a set of IOT Cloud variables into an array of pointers or something to make programming with them a bit easier?

I have a range of arrays in my program that I'm using for controlling switches and so on.
I would like to work with them alongside the cloud variables as arrays, particularly in "for" loops that iterate through the arrays.

At the moment my workaround is to load the cloud values into a new array like this:

  box[0] = box_01;
  box[1] = box_02;
  box[2] = box_03;
  box[3] = box_04;

Then use the new array instead of the cloud variables, finally doing the reverse to push the whole lot back to the cloud. Unfortunately this turns out to cause programming nightmares.

I've taken a look at sets, lists, and a lot of other stuff that is way beyond my comprehension. My suspicion is there is an easy way to sort this but I am struggling to get my head around it.

Any thoughts on this would be greatly appreciated!!