Using Data Types |
Previous Next |
Primitive Data TypesOverviewVariables offer the possibility to store data. The kind of data depends on the data type. MADRIX Script supports the following primitive data types:
Data Type BoolThe data type bool is only used internally and cannot be used to declare a variable. This data type only has to possible values, true or false. It is used for logical operations and for different statements like the »if statement. For example, the following expression results in a bool data type and false as its value. 3 > 4 True And FalseAs stated above, a boolean expression results only in true or false. Furthermore, the keywords true and false are used within MADRIX Script as function parameters or return values. Those parameters and values are of the type int. In such cases true and false represent 1 and 0, respectively. They can be used in upper case (TRUE / FALSE) or lower case (true / false).
Non-Primitive Data Types (Structures)Complex data types, so-called structures, consist of different elements. The elements of a structure are accessed by their names in the following way: nameOfVariable.nameOfElement. For example, col.r, if col is a variable of data type color. The following table is an overview of the structures MADRIX Script provides.
|
MADRIX Version: 5.7 | Script Version: 3.23 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
Previous
Next
|
Enable automatic translation | Activer la traduction automatique | |