Here is a code snippet that first fills an array, and then changes a value with
storeEval | storedVars['names'][${num}] = "Hello World!"
{
"CreationDate": "2018-10-30",
"Commands": [
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed"
},
{
"Command": "open",
"Target": "https://a9t9.com/kantu/demo/storeeval",
"Value": ""
},
{
"Command": "storeEval",
"Target": "new Array ('cat','dog','fish','dog','??','frog','?','dog','??','horse','??elephant')",
"Value": "names"
},
{
"Command": "storeEval",
"Target": "storedVars['names'].length",
"Value": "length"
},
{
"Command": "store",
"Target": "2",
"Value": "num"
},
{
"Command": "storeEval",
"Target": "storedVars['names'][${num}]",
"Value": "myrandomname"
},
{
"Command": "echo",
"Target": "in array is ${myrandomname}",
"Value": "blue"
},
{
"Command": "storeEval",
"Target": "storedVars['names'][${num}] = \"Hello World!\"",
"Value": "myrandomname"
},
{
"Command": "echo",
"Target": "in array is now ${myrandomname}",
"Value": "green"
}
]
}