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?