<% source.strains.each_with_index do |strain, j| %>
<% if (j == (source.strains.size - 1)) %>
<font size="3">Strain <%= strain[0].appendix %> </font>
<% end %>
<% end %>
I need to get output as
If j value is last one of a loop, then i need to print first value of loop (j[0]). Kindly suggest me or correct above script.