Difference between revisions of "Minimizing your Script"
no edit summary
imported>Halo112358 (added best practices section discussing early return calls vs if blocks) |
imported>KyleWollaston |
||
Line 42: | Line 42: | ||
(some extremely long code block) | (some extremely long code block) | ||
end</pre> | |||
You can also do this: | |||
<pre>;; optimized 2 | |||
begin GameMode | |||
if (some condition) | |||
if (some condition) == 0 | |||
return | |||
endif | |||
(some extremely long code block) | |||
endif | |||
end</pre> | end</pre> | ||