I
Iñaki Baz Castillo
Hi, note the difference in those both cases:
a)
if a=3D"QWEQWE" : a end
=3D> "QWEQWE"
b)
a if a=3D"QWEQWE"
NameError: undefined local variable or method `a' for main:Object
I know that the behaviour in a) is no recommended and maybe deprecated in a=
=20
future, but why it works in a) and not in b) ?
Thanks.
=2D-=20
I=C3=B1aki Baz Castillo
a)
if a=3D"QWEQWE" : a end
=3D> "QWEQWE"
b)
a if a=3D"QWEQWE"
NameError: undefined local variable or method `a' for main:Object
I know that the behaviour in a) is no recommended and maybe deprecated in a=
=20
future, but why it works in a) and not in b) ?
Thanks.
=2D-=20
I=C3=B1aki Baz Castillo