[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Minimizing repeatable statements with out LuaMacro
- From: PROXiCiDE <saiyuk7@...>
- Date: Mon, 20 Jun 2011 04:54:51 +0000 (UTC)
Is it possible to crunch these repeatable statements in Lua? with out the
rewrite "IF" statements etc.. maybe inside Array/Table checking etc
if(xArg.exp==">") then
if(what > number) then
print(name,daysTotal)
end
end
if(xArg.exp==">=") then
if(what >= number) then
print(name,daysTotal)
end
end
if(xArg.exp=="<") then
if(what < number) then
print(name,daysTotal)
end
end
if(xArg.exp=="<=") then
if(what <= number) then
print(name,daysTotal)
end
end
if(xArg.exp=="=") then
if(what == number) then
print(name,daysTotal)
end
end