The only way to do this is to make a list and add the single object to the list and break the loop. Retrieve the value from the list outside the loop.
(A variable can not be set to an object)
There are in total 5 options to solve this query .
You can create a list before the loop if you need to have a list of responses and add for each iterator
You can follow these steps to get the Value Response
Create a Variable to Store the Result:
Assign the Value Within the Loop:
Using the Value After the Loop: