Summary
The user is facing an issue where combining multiple conditions using ‘or’ in a cursor pagination stop condition is not working as expected. Only the first condition is being considered as a stop condition.
Question
Hi all,
I’m trying to use this expression as a stop condition for cursor pagination:
{{response.error.code == 32017 or response.result.summary_info.page > config['pages_to_fetch'] - 1}}
Both conditions divided by or
work as separate conditions, but when I combine them into a single expression with or
only the first condition works. So, in the case when the expression false or true
should be evaluated to true
it does not; only the first expression is used as a stop condition.
Can these parts be combined into a single expression that will work?
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.