--- func_logic.c.orig 2006-05-12 09:34:37.000000000 +1200 +++ func_logic.c 2006-05-12 09:34:48.000000000 +1200 @@ -110,7 +110,7 @@ if (iffalse) iffalse = ast_strip_quoted(iffalse, "\"", "\""); - ast_copy_string(buf, ast_true(expr) ? iftrue : iffalse, len); + ast_copy_string(buf, pbx_checkcondition(expr) ? iftrue : iffalse, len); return 0; }