Hi,
I need some help because it returns me this, and i don’t get why :
[error] [Line 7] : Error in runEval code: Unexpected token ‘{’
Here’s the begining of my macro:
{
"Name": "Services-Titres",
"CreationDate": "2021-6-27",
"Commands": [
{
"Command": "csvRead",
"Target": "liste_colonne.csv",
"Value": "",
"Description": ""
},
{
"Command": "storeEval",
"Target": "new Array ('test1', 'test2', 'test3')",
"Value": "Titres",
"Description": ""
},
{
"Command": "storeEval",
"Target": "storedVars['Titres'].length",
"Value": "length",
"Description": ""
},
{
"Command": "echo",
"Target": "array length = ${length}",
"Value": "",
"Description": ""
},
{
"Command": "storeEval",
"Target": "Math.floor(Math.random()*storedVars['length'])",
"Value": "num",
"Description": ""
},
{
"Command": "echo",
"Target": "num=${num}",
"Value": "",
"Description": ""
},
{
"Command": "storeEval",
"Target": "storedVars['Titres'][${num}]",
"Value": "Titrehasard",
"Description": ""