Verse array assignement question

The statement if(set Array1[0] = 5){} fails because you are trying to access an index in the array that doesn’t exist yet (it’s empty),
so the assignment never happens.
You can add a value dynamically by doing set Array1 += array{ 0 }, where 0 is the value you want to add.

The docs you linked show how a map works, which is different from an array

1 Like