--- app_while.c.orig 2006-05-05 16:04:54.000000000 +1200 +++ app_while.c 2006-05-05 16:05:27.000000000 +1200 @@ -111,7 +111,7 @@ } else mydata = ""; - if (ast_true(expr)) { + if (pbx_checkcondition(expr)) { if ((app = pbx_findapp(myapp))) { res = pbx_exec(chan, app, mydata); } else { @@ -277,7 +277,7 @@ } - if ((!end && !ast_true(condition)) || (end == 2)) { + if ((!end && !pbx_checkcondition(condition)) || (end == 2)) { /* Condition Met (clean up helper vars) */ const char *goto_str; pbx_builtin_setvar_helper(chan, varname, NULL);