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]
      
    
 You can definitely wrap functions within each other, and call the inner function from within the outer function. A very relevant example is calling the inner function after a short timer, like this: