[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
→Spaces and Tabs
imported>JOG |
imported>JOG |
||
Line 144: | Line 144: | ||
=== Spaces and Tabs=== | === Spaces and Tabs=== | ||
When using | When using Tabs or Spaces to separate operators/expressions you need to use the same separator on each side. If you use Space on one side and Tab on the other, the script might be permanently stopped when the line is executed. | ||
if SomeVar>=1 ;GOOD | if SomeVar>=1 ;GOOD | ||
Line 159: | Line 159: | ||
if (SomeVar___>= 1) ;BAD ( Tab and Space around "'''=>'''") | if (SomeVar___>= 1) ;BAD ( Tab and Space around "'''=>'''") | ||
Note that you will not receive any compiler error or warnings. You only notice the script not working correctly. You can determine the problem is caused by this by examining the script in an external text-editor or by looking directly at the compiled script data. | Note that you will not receive any compiler error or warnings. You only notice the script not working correctly. You can determine if the problem is caused by this by examining the script in an external text-editor or by looking directly at the compiled script data. | ||
[[Category:Commands]] | [[Category:Commands]] |