I loop an array and inside that, I loop another array within a switch statement.
array
{(rowsPerPage > 0 ? filt