Difference between revisions of "Array Reference"
Jump to navigation
Jump to search
no edit summary
imported>Jlundin |
imported>Egocarib |
||
Line 72: | Line 72: | ||
x = myArray[myArray.Length - 1] | x = myArray[myArray.Length - 1] | ||
</source> | </source> | ||
== Warnings == | |||
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> | |||
(from [[Operator_Reference#Assignment_Operators|Assignment Operators]]) | |||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Papyrus Language Reference]] | [[Category:Papyrus Language Reference]] |