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 ;
<Condition>(var1 == "false") and (var2 != "true") </Condition> // apigee is complaining while saving it.
<Condition>(var1 == "false") && (var2 != "true") </Condition>
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;
<Condition>(var1 == "false") or (var2 != "true") </Condition> // works fine
<Condition>(proxy.pathsuffix MatchesPath "/path1") and (request.verb = "PUT")</Condition> //works fine
@raul ,
Below flow conditions works fine for me without any errors,
<Condition>(var1 == "false") and (var2 != "true") </Condition>
Do you see an issue while using above condition ? Are you using onPremises / onCoud ? Which version ? Find version by navigating to "/buildInfo"
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |