{loop $rightatypearray $aval}

    {loop $rightarticlearray $val} {if $val['typeid']==$aval[typeid]}
  • {/if} {/loop}
{/loop}