Thanks for your responses!

--
An=EDbal

On Mar 18, 2:44=A0pm, Mark Thomas <m... / thomaszone.com> wrote:
> On Mar 17, 12:01=A0pm, An=EDbal Rojas <anibalro... / gmail.com> wrote:
>
> > Hello,
>
> > =A0 =A0I am kind of lost with thenilresult while I am expecting a false=
:
>
> > irb(main):001:0> =A0x =3D 'foo'iffalse
> > =3D>nil
> > irb(main):002:0> x
> > =3D>nil
> > irb(main):003:0> =A0x =3D 'foo'iftrue
> > =3D> "foo"
> > irb(main):004:0> x
> > =3D> "foo"
>
> > =A0 =A0Thanks in advance for sharing your knowledge,
>
> Another way to think about it is that the above constructs are
> alternate ways of expressing the following:
>
> iffalse then x =3D 'foo' endiftrue then x =3D 'foo' end
>
> -- Mark.