Conditional extended to template tasks