Stop the loop if a value is found

For a list of integers, I need to check the desired value by calling a service. I would like to stop calling the service, only I get the desired output. Any suggestions, please. 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data