Knowledge Base Wiki

Search for LIMS content across all our Wiki Knowledge Bases.

Type a search term to find related articles by LIMS subject matter experts gathered from the most trusted and dynamic collaboration tools in the laboratory informatics industry.

Ishoratlarni tahrirla

Bu modul uchun Modul:Yesno/doc nomli hujjat sahifasini yaratishingiz mumkin

return function (val, default)

	val = type(val) == 'string' and val:lower() or val
	if val == nil then
		return nil
	elseif val == true 
		or val == 'yes'
		or val == 'y'
		or val == 'true'
		or val == 't'
		or val == 'on'
		or val == 'ha'
		or val == 'yoniq'
		or tonumber(val) == 1
	then
		return true
	elseif val == false
		or val == 'no'
		or val == 'n'
		or val == 'false'
		or val == 'f'
		or val == 'off'
		or val == 'yoʻq'
		or val == 'yoq'
		or val == 'oʻchiq'
		or val == 'ochiq'
		or tonumber(val) == 0
	then
		return false
	else
		return default
	end
end