Difference between revisions of "If"
Jump to navigation
Jump to search
→Oblivion evaluates entire If statement
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 | 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: |