I want to keep track of the values of variables over time, and to do that I'm trying to use the export function. I would like the variable name to be indexed so I can tell them apart, i.e:
$i = some number that changes
$var[$i] = 30; export("$var[$i]", "index.cs", True);
$var[$i] = 40; export("$var[$i]", "index.cs", True);
etc.
but I need the indexing to occur automatically and continuously. 1) I'm pretty sure that variable names cannot be changed as I've tried to do in the above code...correct? 2) I've found that the export function doesn't seem to like any sort of array, even if it's a string. So for example, if my variable is $var[yourmom], it won't export it, but it WILL export $var_yourmom and $varyourmom, etc.
Is there any way to get around this?