Jump to content

Module:Citation/CS1/Utilities

Ɛfi Wikipedia
Revision as of 15:46, 13 Ɔpɛnimma 2015 by Trappist the monk (kasa | mmoa) (create as an experiment;)
(nsonsoe) ← Nkyerɛ mu a atwamu | Nkyerɛmu a ɛba yɛ nkyɛe (nsonsoe) | Nkyerɛ mu a ɛba → (nsonsoe)

Documentation for this module may be created at Module:Citation/CS1/Utilities/doc

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