{foreach item=LIST_MASSACTION from=$LISTVIEW_MASSACTIONS name=massActions}
{if $LIST_MASSACTION->getLabel() eq 'LBL_EDIT'}
{assign var=editAction value=$LIST_MASSACTION}
{else if $LIST_MASSACTION->getLabel() eq 'LBL_DELETE'}
{assign var=deleteAction value=$LIST_MASSACTION}
{else if $LIST_MASSACTION->getLabel() eq 'LBL_ADD_COMMENT'}
{assign var=commentAction value=$LIST_MASSACTION}
{else}
{$a = array_push($LISTVIEW_MASSACTIONS_1, $LIST_MASSACTION)}
{* $a is added as its print the index of the array, need to find a way around it *}
{/if}
{/foreach}