Compare None in Python inside rule #62
-
I have the following rule if the county is Australia and State is None then change the value I have tried
but keep getting the following error raise ValueError(f"Invalid rule {rs['rule']} in list of rules: {ex}") |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Never mind found the solution. Following works { |
Beta Was this translation helpful? Give feedback.
Never mind found the solution. Following works
{
"rule": "country == 'Australia' and not state",
"Value": "--None--"
}