Comparing variables

Kantu’s storeEval and flow control follows exactly the Javascript syntax. So the right way is to use && (and operator):

parseInt ("${a}") > 5 && parseInt ("${a}") < 15

Test macro:

{
  "Name": "compare var",
  "CreationDate": "2018-12-8",
  "Commands": [
    {
      "Command": "store",
      "Target": "10",
      "Value": "a"
    },
    {
      "Command": "if",
      "Target": "parseInt (\"${a}\")  > 5  && parseInt (\"${a}\") < 15",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Var in range!",
      "Value": "green"
    },
    {
      "Command": "else",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Var outside range",
      "Value": "red"
    },
    {
      "Command": "endif",
      "Target": "",
      "Value": ""
    }
  ]
}