- Joined
- Oct 11, 2012
- Messages
- 711
JASS:
function a takes nothing returns nothing
return 1
endfunction
function b takes nothing returns nothing
return 2
endfunction
function c takes nothing returns nothing
return 3
endfunction
function Actions takes nothing returns nothing
if a then
....
endif
if b then
...
endif
if c then
...
endif
endfunction
or
JASS:
function Actions takes nothing returns nothing
if 1 then
....
endif
if 2 then
...
endif
if 3 then
...
endif
endfunction
They have the same outcome, I just wanna know which one is better in terms of efficiency and speed. Thanks guys.