Difference between revisions of "Operator Reference"
Jump to navigation
Jump to search
→added array caveat
imported>TomBrightblade (→Comparison Operators: "Less-than <" means "compare if left is smaller than right" etc.) |
imported>Mr Wallet |
||
Line 157: | Line 157: | ||
; add 1 to the current value of i, and assign it to i | ; add 1 to the current value of i, and assign it to i | ||
i += 1 | i += 1 | ||
</source> | |||
Only the = operator can be used with an [[Arrays_(Papyrus)|array]]: | |||
<source lang="papyrus"> | |||
; Will not compile, as the compiler doesn't know how to handle it. | |||
myArray[3] += 5 | |||
</source> | </source> | ||