15 Sep
2014
15 Sep
'14
3:56 p.m.
On Mon, 15 Sep 2014, Michail Vidiassov wrote:
Dear Peter,
More a lua design decision. 'nil' is equal to 'false' here
I know no CS theory behind lua design, but try this: \starttext \startluacode if nil == false then io.write("nil == false\n") end if nil ~= false then io.write("nil ~= false\n") end \stopluacode TEST \stoptext
and get
nil ~= false
I think that what Peter meant was: if nil then .... end if not nil then ... end Aditya