Stopping at blank cell or specific content

Topics: Developer Forum, Project Management Forum, User Forum
Aug 12, 2014 at 10:48 AM
Hello.

I am using a code from the internet that can display upload excel file and convert it to table html.
but it also include spaces or blank cells. Is there a way to stop at blank cell? Please advise. Thanks.
Sep 4, 2014 at 11:23 AM
I got the answer.

//Check if the next cell is empty

if ($val == '') {break;}

This will stop the loop.