Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Testing Empty Replicates
davidraso
Hi,
Is there an easy way to test if a replicate is empty?
The only example I can find below gets very complicated when you have many nested replicates.
<iw_iterate var="randomVariable" list="dcr.randomItem">
<iw_if expr='{iw_value name="randomVariable.text"/}'>
<iw_then>
//* Place anything you want in here
</iw_then>
</iw_if>
<iw last/>
</iw_iterate>
thanks
Find more posts tagged with
Comments
jbonifaci
If you're asking for a function like iw_is_replicant_empty, then no. You're going to have to iterate through the replicant and check if all of the fields are empty. If I remember right, Johnny posted a function that did just that not too long ago in response to a similar post. You might be able to find it if you search a bit.
jbonifaci
Found Johnny's post for you, check it out
here
.