ScriptCollection data type

  • Updated

The irScript ScriptCollection data type is used in the same way lists, collections, and arrays are used in other programming languages. It provides iterative and indexed access to its constituent elements, as well as a variety of lookup and filtering operations.

ScriptCollections are heterogenous in nature; they can contain a mix of elements from any data type, including those data types not native to irScript (such as external CLR object instances, non-native integer types, etc.).

Note that there is no native array type in irScript.

NOTE: Entity Collections are NOT the same as ScriptCollections. The rich set of methods available on ScriptCollections (see below) is not available for standard collections and will throw a runtime error. Only Add(), Delete(), and Clear() are available for Entity Collections.


Was this article helpful?

0 out of 0 found this helpful



Please sign in to leave a comment.