request for change of boolean

new topic     » topic index » view thread      » older message » newer message

Is it possible to change how boolean expressions are evaluated such that only
values greater than 0 pass this test? :

readfile = open(flagfilename,"r")
if readfile then
-- it's there, process it
end if


Currently, if readfile = -1 , it evaluates to TRUE, when in fact the readfile
was not opened.

Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu