Oscript has a list of data types which can be used for storing data. These can be classified into two categories:
Value Data Types - When passed as a parameter, value data types get copied. Hence any change to copied data does not effect the original. Following are the value data types:
- Integer
- Real
- Boolean
- String
- Date
- Undefined
- Object
- File
- Error
Reference Data Types - When passed as a parameter, a reference of these data types are passed. Any change to passed variable changes the original one as well. Following are the reference data types:
- Assoc - an array of key-value pair
- Rec Array -a two-dimensional array or collection of multiple Records
- List - a one dimensional array. An element of this variable can be of any data type