Hi developers,
The “conditions” in flow seems very confusing topic to me and document doesn’t seem to address multiple conditions scenarion;
I am setting some javascript variables to “true” or “false” in policies and using following conditions in proxy endpoint ;
(var1 == “false”) and (var2 != “true”) // apigee is complaining while saving it.
(var1 == “false”) && (var2 != “true”)
Error →
Invalid condition: (var1 == “false”) (var2 != “true”) in policy XYZ, malformed expression
I am not sure why GUI error message is not showing “and” or “&&”, I am placing in the condition expression
.
While following two conditions work fine;
(var1 == “false”) or (var2 != “true”) // works fine
(proxy.pathsuffix MatchesPath “/path1”) and (request.verb = “PUT”) //works fine