From: Luiz Vitor Martinez Cardoso Date: 2008-08-17T12:09:27+09:00 Subject: writing if statement in one line with elsif condition ------=_Part_110246_4243412.1218942754164 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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" ------=_Part_110246_4243412.1218942754164--