Just a reminder: outside the math evaluator, a G’MIC variable is always a string. There are not such things as typed variables there (value, array of values, …).
If you want to store a sequence of values in a single variable, then
is OK, but still, remember this is a single string.
If you want to assign another number to the second value of this string, then use the math evaluator:
But again, keep in mind you are actually generating an entire (modified) new string that will be assigned to
In case you are still no sure about that:
Values of G’MIC variables are strings
PS : Inside the math evaluator however, variables are typed, they can be either a scalar value, or a vector of size N, nothing else.