I was wondering what the best way to handle the following examples are, with speed being the main focus.
Example 1:
if a \> 50 then
if b \> 10 then
--do something
elseif c \> 10 then
--do something else
end
end
OR:
if a \> 50 and b \> 10 then
--do something
elseif a \> 50 and c \> 10 then
--do something else
end
Example 2:
local function callMe()
--do something
end
local function runMe()
callMe()
end
runMe()
OR
local function runMe()
local function callMe()
--do something
end
callMe()
end
runMe()
Any insights would be appreciated. [import]uid: 129287 topic_id: 25832 reply_id: 325832[/import]