{assign var='past' value="past-president"} {if !empty($item.members.president) || !empty($item.members.$past) || !empty($item.members.treasurer)}

Officers

{if !empty($item.members.president) && is_array($item.members.president)} {foreach from=$item.members.president item=member name=member} {include file="Volunteer/memberBoard.tpl" member=$member} {if $smarty.foreach.member.iteration % 4 == 0}
{/if} {/foreach} {/if} {if !empty($item.members.$past) && is_array($item.members.$past)} {foreach from=$item.members.$past item=member name=member} {include file="Volunteer/memberBoard.tpl" member=$member} {if $smarty.foreach.member.iteration % 4 == 0}
{/if} {/foreach} {/if} {if !empty($item.members.treasurer) && is_array($item.members.treasurer)} {foreach from=$item.members.treasurer item=member name=member} {include file="Volunteer/memberBoard.tpl" member=$member} {if $smarty.foreach.member.iteration % 4 == 0}
{/if} {/foreach} {/if} {/if}
{if !empty($item.members.director) && is_array($item.members.director)}

Directors

{foreach from=$item.members.director item=member name=member} {include file="Volunteer/memberBoard.tpl" member=$member} {if $smarty.foreach.member.iteration % 4 == 0}
{/if} {/foreach} {/if}