How do I use multiple conditions in condition script watcher

If I create a watcher and I have a condition that looks like this:

"condition": {
    "script": {
      "source": "return 5 / 100 * 100 > 5",
      "lang": "painless"
    }
  }

it returns false (0).

while when I have a condition like this:

 "condition": {
     "script": {
        "source": "return 5 * 100 > 5",
        "lang": "painless"
      }
  }

it returns true (500).

Am I allowed to use multiple conditions in a source field?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.