Count No of images and act on it

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 28, 2015   (RSS)

By Damon - October 28, 2015

Hi zaba,

Try this code:

<?php $imagesTotal = count($aboutRecord['images']); ?>

<?php if($imagesTotal <= 1) : ?>
    There is one or less images.
<?php endif; ?>

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By zaba - October 28, 2015

Brilliant,

Thanks :-)