I want to do a simple while loop and would like to set the exit condition within the callback function. I\'ve been looking many examples, still not able to figure out. Any h