I have my HTTP request and have some conditions need to wait get at least 1 results or complete=true from the response, but also i want to add if keep executing to satisfy the below condition i want to stop after some request. My code
if (vars.get('complete') == true || vars.get('total_result') > 0) {
vars.put('stop', true);
}