Wikia

WoWWiki

Sea.util.fixnilSub

Talk0
101,556pages on
this wiki
This article is a part of the documentation of the Sea (AddOn) function library
-- 
-- fixnilsub (sub, ... )
--
--	replaces nils with a substitute
--	
--
fixnilSub = function(sub, ... )
	for i=1, arg.n, 1 do
		if(not arg[i]) then
			arg[i] = sub;
		end
	end
	return arg;
end;

Originally coded by Thott (thott@thottbot.com)

Around Wikia's network

Random Wiki