I recently noticed that the break command does not reset the !times variable for the loop it’s breaking out of. The following should be an infinite loop, but it isn’t:
{
"Name": "TEST",
"CreationDate": "2022-8-9",
"Commands": [
{
"Command": "label",
"Target": "start",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "0",
"Value": "counter",
"Description": ""
},
{
"Command": "times",
"Target": "15",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number(${counter})+1",
"Value": "counter",
"Description": ""
},
{
"Command": "if_v2",
"Target": "${counter} > 5",
"Value": "",
"Description": ""
},
{
"Command": "break",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${counter} > 5",
"Value": "start",
"Description": ""
}
]
}