you would need another condition around the inserted if statement:
<?php
if ("".$row_gallery['GalleryName'] ."" != "") { // WebAssist Show If
?>
<?php
if ("".$row_gallery['created'] ."" == "".$row_gallery['historycreated'] ."") { // WebAssist Show If
?>
Inserted
<?php
} // ("".$row_gallery['created'] ."" > "".$row_gallery['updated'] ."")
?>
<?php
} // ("".$row_gallery['GalleryName'] ."" != "")
?>