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

```
vec=1,2,3
```

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:

```
vec={"v=["$vec"];v[1]=$1;v"}
```

But again, keep in mind you are actually generating an entire (modified) new string that will be assigned to `vec`

.

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.*