📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
J

RSS Avoiding multiple foreach loops in this template code?

  • Thread starter Thread starter Joe Link
  • Start date Start date
J

Joe Link

Guest
Guest or Bot
We place new members in a trial group until they hit criteria for full membership. Within conversations, we want to show a small single line notice to full members if there's a single participant in the trial group, or a larger notice with a list of members in this group if there's multiple members in the trial group.

I trial-and-error'd my way to working code, but it seems inefficient to use one foreach just for counting (to determine which notice to display) and another for displaying...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top