I’ve noticed that gotoif doesn’t work if I store the label name inside a variable, but gotolabel works fine under the same circumstances. I provided a small test macro below to show what happens with both, is this a bug or am I missing something?
{
"Name": "TEMPORARY 2",
"CreationDate": "2021-10-9",
"Commands": [
{
"Command": "store",
"Target": "medium",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "store",
"Target": "Test1",
"Value": "Label1",
"Description": ""
},
{
"Command": "gotoLabel",
"Target": "${Label1}",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "skipthis",
"Value": "",
"Description": ""
},
{
"Command": "label",
"Target": "Test1",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "Test2",
"Value": "Label2",
"Description": ""
},
{
"Command": "store",
"Target": "1",
"Value": "Skip",
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${Skip} == 1",
"Value": "${Label2}",
"Description": ""
},
{
"Command": "echo",
"Target": "skipthis",
"Value": "",
"Description": ""
},
{
"Command": "label",
"Target": "Test2",
"Value": "",
"Description": ""
}
]
}