יחידה:מיון יחסי

מתוך ויקיפדיה, האנציקלופדיה החופשית

ניתן ליצור תיעוד על היחידה הזאת בדף יחידה:מיון יחסי/תיעוד

local m = {}

function m.seder(frame)
	local num1 = tonumber(frame.args [1])
	local num2 = tonumber(frame.args [2])
	local res = num1 .. "is"
	if num1 > num2 then res=res .. ' ' .. "bigger than" num2=num2 end
	if num1 == num2 then res=res .. ' ' .. "equal to" num2=num2 end
	if  num1 < num2 then res=res .. ' ' .. 'smaller than' num2=num2 end
	return res 
	end