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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to