Module:Citation/CS1/Utilities
From All Skies Encyclopaedia
{{#lst:Module:Citation/CS1/doc|header}} This page contains various functions and tables that are common to multiple of the various modules that make up Module:Citation/CS1.
{{#lst:Module:Citation/CS1/doc|module_components_table}}
local u = {}
--[[--------------------------< I S _ S E T >------------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
This function is global because it is called from both this module and from Date validation
]]
function is_set( var )
return not (var == nil or var == '');
end
return {is_set = is_set} -- return exported functions