L
Luiz Vitor Martinez Cardoso
I'm trying to convert it:
<% if @recipes.length =3D=3D (i+1) %>
<% @id =3D 0 %>
<% elsif i.remainder(2) =3D=3D 1 %>
<% @id =3D 1 %>
<% else %>
<% @id =3D 2 %>
<% end %>
To something like:
<% if @recipes.length =3D=3D (i+1) then @id =3D 0 ; elsif
i.remainder(2) =3D=3D 1 then @id =3D 1 ; else @id =3D 2 end >%
But in my tests the elsif condition is totally ignored, why?
Thanks for you attention!
--=20
Regards,
Luiz Vitor Martinez Cardoso
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 d=
e
que eu vou lutar com todas as minhas for=E7as para ser o melhor engenheiro =
que
eu puder ser"
<% if @recipes.length =3D=3D (i+1) %>
<% @id =3D 0 %>
<% elsif i.remainder(2) =3D=3D 1 %>
<% @id =3D 1 %>
<% else %>
<% @id =3D 2 %>
<% end %>
To something like:
<% if @recipes.length =3D=3D (i+1) then @id =3D 0 ; elsif
i.remainder(2) =3D=3D 1 then @id =3D 1 ; else @id =3D 2 end >%
But in my tests the elsif condition is totally ignored, why?
Thanks for you attention!
--=20
Regards,
Luiz Vitor Martinez Cardoso
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 d=
e
que eu vou lutar com todas as minhas for=E7as para ser o melhor engenheiro =
que
eu puder ser"