15 Sep
2014
15 Sep
'14
5:34 p.m.
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 As checkedkey is for reading parameter tables, based on user input, there may be real difference between a property not set (i.e. nil) and one set to be false. What if the default setting is true, for example? Michail