Module:Check

-- Module Check -- -- Written by User:Shining-Armor -- -- Version 0.0.1 -- -- Last updated 9-15-2014

local p = {}

-- -- -- -> Animal is not a cat function p.isMatch( frame ) if frame.args[1] == 'true' then frame.args[2] = string.lower(frame.args[2]) frame.args[3] = string.lower(frame.args[3]) end

if frame.args[2] == frame.args[3] then return frame.args[4] else return frame.args[5] end end

-- -- -- -> true -- -> false function p.isNull( frame ) if frame.args[1] == nil or frame.args[1] == '' then return true else return false end end

-- -- -- -> Dog -- -> Cat function p.isNullDefault( frame ) if frame.args[1] == nil or frame.args[1] == '' then return frame.args[2] else return frame.args[1] end end

return p