Module:User:Benwing2/test-and-nil

local export = {}

function export.test(frame) local i = 1 local val = i == 2 and "foo" -- this returns "false" not "nil" return tostring(val) end

return export