Module:Contains

From Heroes 3 wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Contains/doc

local p = {} --p stands for package

function p.value(frame)
	if string.find(frame.args.haystack, frame.args.needle) then
		return 1
	end
    return 0
end

return p