A number of constants are built into 010 Editor, including true, false, TRUE, FALSE, M_PI, and PI. This syntax is generally better for defining constants than using the ' #define' preprocessor directive. Declaring variables is the main way of building Templates (see Declaring Template Variables for more information).Ĭonstants can be declared using the keyword ' const' before a variable declaration. Arrays of variables can also be declared (see Arrays, Duplicates, and Optimizing). Any variables declared in a Script will be displayed in the Variables tab of the Inspector. For a complete list of types allowed, see Data Types. For example: int x Ĭurrently only the characters a.z, A.Z, 0.9 and underscore '_' are allowed in variable names and the variable name must start with a letter or underscore. Multiple variables can also be declared using the ',' operator. Installing Files on Open from the RepositoryĪ variable can be declared using the syntax ' ' Use an '=' to assign a value to the variable.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |