I’m trying to convert it:
<% if @recipes.length == (i+1) %>
<% @id = 0 %>
<% elsif i.remainder(2) == 1 %>
<% @id = 1 %>
<% else %>
<% @id = 2 %>
<% end %>
To something like:
<% if @recipes.length == (i+1) then @id = 0 ; elsif
i.remainder(2) == 1 then @id = 1 ; else @id = 2 end >%
But in my tests the elsif condition is totally ignored, why?
Thanks for you attention!
–
Regards,
Luiz Vitor Martinez C.
cel.: (11) 8187-8662
blog: rubz.org
engineer student at maua.br
“Posso nunca chegar a ser o melhor engenheiro do mundo, mas tenha
certeza de
que eu vou lutar com todas as minhas forças para ser o melhor engenheiro
que
eu puder ser”