Module:Excerpt/sandbox: Difference between revisions

Content deleted Content added
Define truthy() function to test for truthy values
mNo edit summary
Line 67:
end
 
-- Helper function to test for truthy values
local function truthy( value )
if not value or value == "" or value == "0" or value == "false" or value == "no" then