$set(adv=GetAdv(advid)) $if(adv) $if(adv.RotationPics) $foreach(rotationPic in adv.RotationPics) $if(rotationPic.picisopen && adv.isopen)
$end $end $end $end