package play
exists(obj, a) {
obj[a]
}
hello {
exists(input, "department")
contains(input["location"], "London")
}
world {
contains(input["location"], "London")
exists(input, "department")
}
input = { "department": "Eng", "location": "London" }
Above code matches only hello. Why world does not match even when the conditions are same, but order reversed ?