Value order for defines
- Last UpdatedDec 06, 2023
- 1 minute read
When considering the order in which the system applies overriding operations, consider the following:
-
Define instances are constants used for assigning values to node fields or for pre-processing purposes.
-
Cfg configuration files are used to override define nodes content.
-
Configurations and custom.cfg are used to override cfg configuration files or to define declarations.
All these overriding operations are done before executing the defines inside scripts.
Order for assigning values
Defines are given values in this order:
-
Define declaration
-
Cfg configuration files
-
Configurations
-
Custom.xml
The constant value of a define is set by its last assignment in this chain; it could be declaration, a config file, a configuration, or the custom.xml file.