Adding template syntax support for calling functions within ifs.