yes you have.
every if needs corresponding endif.

you have endifs only for if ingroup lines.
_________________________
!

download KiXnet