Compare None in Python inside rule #60
Replies: 1 comment
-
You want
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following rule if the county is Australia and State is None then change the value
{
"rule": "country == 'Australia' and (state is None or state == '')",
"Value": "--None--"
}
I have tried
but keep getting the following error
raise ValueError(f"Invalid rule {rs['rule']} in list of rules: {ex}")
ValueError: Invalid rule county == 'Australia' and (state is None or state == '') in list of rules: ('syntax error', LexToken(SYMBOL,'is',1,33))
Beta Was this translation helpful? Give feedback.
All reactions