Difference between revisions of "If"
m
→Oblivion evaluates entire If statement
imported>Thalassicus |
imported>Thalassicus |
||
Line 121: | Line 121: | ||
end</pre> | end</pre> | ||
In short, best practice is to call RETURN early and often, when possible. For large scripts with complex routines (such as | In short, best practice is to call RETURN early and often, when possible. For large scripts with complex routines (such as looking for an item in inventory, sorting an array, searching an array, etc.) this subtle difference can yield dramatic performance gains. | ||
== Comparisons and Expressions == | == Comparisons and Expressions == |