--[[
	
	Searches a dictionary for a value and returns the key for it
	
	Functions.SearchDictionary(
		table,					<-- |REQ| 	Dictionary to search through
		search,					<-- |REQ| 	Search value
	)
	
--]]




return function(dictionary, search)
	--- Scan dictionary
	for key, value in pairs(dictionary) do
		if value == search then
			--- Matching key!
			return key
		end
	end
	
	--- No matching value
	return
end
