Just a quick one…
I seem to have difficulty with using IF !RUNTIME > 60
Is !RUNTIME measured in Seconds or something else?
Just a quick one…
I seem to have difficulty with using IF !RUNTIME > 60
Is !RUNTIME measured in Seconds or something else?
!Runtime is in seconds, but it is a string. => You need to convert it to float type first with parseFloat
to compare it with another value. This works:
{
"Name": "runtime",
"CreationDate": "2020-3-24",
"Commands": [
{
"Command": "pause",
"Target": "1000",
"Value": ""
},
{
"Command": "if_v2",
"Target": "parseFloat(${!runtime}) > 0.8",
"Value": ""
},
{
"Command": "echo",
"Target": "too slow!!!",
"Value": "blue"
},
{
"Command": "end",
"Target": "",
"Value": ""
}
]
}