Difference between revisions of "NVSE Expressions"
+ * & usage examples
imported>Odessa m (+external links) |
imported>Odessa (+ * & usage examples) |
||
Line 102: | Line 102: | ||
... | ... | ||
if TestExpr MyArray[x] ; | if TestExpr MyRef := MyArray[x] ; assign MyRef to array element x, if this index exists | ||
... | ... | ||
if eval !(SunnyREF.GetDead) ; if sunny is not dead | if eval !(SunnyREF.GetDead) ; if sunny is not dead | ||
... | ... | ||
foreach entry <- SomeArray | |||
let MyRef := *entry ; 'Unbox' is equivalent to using entry["value"] | |||
... | |||
; boxing a ref into a single entry array allows passage as an argument of this type: | |||
call MyUDF &MyRef | |||
</pre> | </pre> | ||