Need help with !LastCommandOK

Image%20264

I’m obviously doing something wrong with !LastCommandOK. I have also tried {
“Command”: “if_v2”,
“Target”: “${LastCommandOK} == true”,
“Value”: “”
},

but no luck.

Your code have an error

You must use this command

{
  "Command": "if_v2",
  "Target": "${!LastCommandOK}",
  "Value": ""
},

To reverse you must use !

{
  "Command": "if_v2",
  "Target": "!${!LastCommandOK}",
  "Value": ""
},
1 Like