Why does my macro stop in the middle after executing the command while_v2? After executing this command, it simply shows the message “Macro completed running” and there is no error, nothing else happens.
JSON code:
{
"Name": "buggy_macro",
"CreationDate": "2023-11-28",
"Commands": [
{
"Command": "store",
"Target": "medium",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "store",
"Target": "100",
"Value": "loop",
"Description": ""
},
{
"Command": "store",
"Target": "2",
"Value": "i",
"Description": ""
},
{
"Command": "store",
"Target": "${i}",
"Value": "",
"Description": ""
},
{
"Command": "while_v2",
"Target": "${i} <= ${loop}",
"Value": "",
"Description": ""
},
{
"Command": "csvRead",
"Target": "web_logins.csv",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "${!COL1}",
"Value": "#shownotification",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number(${!csvReadLineNumber})+1;",
"Value": "!csvreadlinenumber",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
}
]
}