You can use expressions in place of data elements or variables in the configuration file. The right hand side of an = (assign) directive is an expression.
An expression must contain at least one of the following items:
Expressions can use operators that are similar to the C and C++ operators. All arithmetic expressions are integer expressions. Rules about operator priority, associativity, and the function of operators are the same as those for equivalent C and C++ operators, as is the use of parenthesis, ( and ). The operators listed in the following table are allowed:
| Arithmetic Operators | Type |
|---|---|
| - * / + - |
unary negation multiplicative additive |
| Conditional Operators | Type |
| < <= > >= == != & | |
relational equality logical and logical or |
The logical and, & , and logical or , | , are equivalent to && and || respectively in the C and C++ languages.
The conditional operators usually appear in if directives. For example, the subdirectives of the following if directive are processed only if the environment variable X has the value "YES":
if $X == "YES" {
/* directive block */
}
![]()
Configuration Files
How Configuration Files Are
Processed
![]()
Configuration File Directives
Build Options
