Hi @Jon Welcome to Microsoft Q&A forum and thanks for reaching out here.
At this point I'm not sure how your API response looks like, but as per my understanding you would like to end the pagination when all pages are completed. Looking at what you are trying when the page
value is equal to total
value from your response you would like to end the pagination.
In that case you can just try Empty
or NotExist
as described in the public documentation and that would end your pagination when there is no data returned for the specified node.
In case if you have specific requirement to match page value with total value, then please share a sample response of your API and we will assist you accordingly.
Hope this helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.