Visibility condition in loop


i have a loop with 4 image that i add with a cms. If i add a visibility condition for the last, divhunt add condition for all loop

I need that if last image is not present, i don t view nothing


Is that loop or is it coming from CMS?

I have a loop with 4 image…all image is part of cms…but in some case i have only 3 image and not 4


I’ll suggest not using loop in this case, just duplicate main div 4 times and then use condition on those div’s ( each one separately )