Conditional selection string expression. More...
#include <strexpr.h>
Conditional selection string expression.
| A | Branch type for true. |
An expression that, depending on the truth of the condition, generates either expression A or a string from a string literal. The type is usually not used directly; it is created via e_choice().
Since string literals are not string expressions, use them as a single expression in parts e_choice or e_if would require them to be surrounded by some constructs that convert them to a string expression. You would have to write something like this:
This, on the one hand, clutters up the code, on the other, makes it less optimal. These overloads use expr_choice_one_lit and expr_choice_two_lit, allowing you to write like this: