May 03, 2020 12:03 AM|bruce (sqlwork.com)|LINK
The markup in an if must have balanced and matching tags. So
is not legal markup. You need to restructure your ifs so the markup is balanced inside. Also a <tr> with a parent table is invalid. You just need break it into the zero case and the one case.