Change cond='' to cond=true()
Fix yield support in view function