Difference between revisions of "If"

Jump to navigation Jump to search
78 bytes added ,  04:51, 17 December 2009
imported>Thalassicus
imported>Thalassicus
Line 98: Line 98:
'''Since boolean operators (&& ||) are implemented poorly in Oblivion, avoid them whenever possible.'''
'''Since boolean operators (&& ||) are implemented poorly in Oblivion, avoid them whenever possible.'''


In addition, the script engine looks over everything inside an If block, even when the condition was false, until the script engine finds an exit point. An exit point is an accessible RETURN call, or the end of the script.
In addition, the script engine looks at every line inside an If block, even when the condition was false, until an exit point is found. (Note that the code is only looked at, not evaluated, thus the example above works correctly.) An exit point is an accessible RETURN call, or the end of the script.


This:
This:
Anonymous user

Navigation menu