[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "If"
Jump to navigation
Jump to search
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 looking for an item in inventory or a container, sorting | 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 or a container, sorting a list, searching a list, etc.) this subtle difference can yield dramatic performance gains. | ||
== Comparisons and Expressions == | == Comparisons and Expressions == |