![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
15 Sep
2014
15 Sep
'14
5: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