s/endif/endfun