i am using webhook and i want to set more than one condition in webhook , when i use and it does not work , and when i use just a space it raise an error its not json serializable
rmeyer
July 14, 2024, 9:58am
2
Can you share the exact conditions you tried?
Also, maybe this post can help:
So the condition field uses Python and the code you can write in here is
exactly what is allowed inside any “condition” in Python (like in if condition).
This is the same reason why multiple lines wont work, as python doesnt accept linebreaks in conditions without escapes.
If the conditions are many, then you will have to use and, or or or others like below, without linebreaks:
a==b and b!=c or c!=a and c>b
With escapes:
a==b and b~=c \
or c!=a and c>b