How to print table header when rows are present and how to hide table header when rows are not prese
How to print table header when rows are present and how to hide table header when rows are not present?
I have to use for loop inside table but can't use for loop outside table which will print table header many times.
Single if outside table to check if element is present and then print header and continue for loop for rows is not working.
Any solution?
Thanks.