Issue with Cursor Pagination Stop Condition Expression

Summary

User is experiencing an issue with combining two conditions in a cursor pagination stop condition expression, where only the first condition is evaluated as true.


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.

Join the conversation on Slack

['cursor-pagination', 'stop-condition', 'expression', 'or-condition']