Difference between revisions of "NVSE Expressions"

249 bytes added ,  05:12, 19 September 2014
+ * & usage examples
imported>Odessa
m (+external links)
imported>Odessa
(+ * & usage examples)
 
Line 102: Line 102:
     ...
     ...


if TestExpr MyArray[x] ; see if my array has element 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>


Anonymous user