Re: [Dave] IF image THEN ...
Dave, once I discovered this error in the code you gave me...
<?php $mainImages = getUploads($options['tableName'], 'main_image', $record['num']) as $upload); ?>
and changed it to...
<?php $mainImages = getUploads($options['tableName'], 'main_image', $record['num']); ?>
then it worked great.
Thanks!