Jump to content

Module:Sandbox/MSGJ

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MSGJ (talk | contribs) at 10:07, 18 December 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
require('strict')
local p = {}

p.main = function(frame)
	local nil_variable = nil
	return 'Value: ' .. tostring(nil_variable)
	.. '<br>Equals a:' .. tostring(nil_variable=='a')
	.. '<br>Does not equal a:' .. tostring(nil~='a')
	.. '<br>Does not equal a:' .. tostring(not (nil=='a'))
end

return p