37.6 Using
expressions in macros
In DITA2Go macros, an expression
usually consists of two operands separated by an operator:
<$(operand operator
operand)>
As an exception, one type of conditional
expression consists of three operands and two operators:
<$(operand ? operand
: operand)>
The result of a DITA2Go macro
expression is a strong value.
In this section:
§37.6.1
Understanding macro expressions
§37.6.2
Understanding operands and operators
§37.6.3
Displaying expression results in output
§37.6.4
Using control structures in expressions
§37.6.5
Specifying substrings in expressions
§37.6.6
Using list variables in expressions
§37.6.7
Using indirection in expressions
§37.6.8
Removing spaces from strings: an example
Previous Topic:
37.5.3 Deploying
configuration macros
Next Topic:
37.6.1 Understanding
macro expressions
Parent Topic:
37. Working with macros
Sibling Topics:
37.1 Defining
and invoking macros
37.2 Accessing
DITA2Go macro libraries
37.3 Using macro
variables
37.4 Using
multiple-value list variables
37.5 Accessing
settings with configuration macros
37.7 Passing
a parameter to a macro
37.8 Debugging
macros
37.9 Deploying
macros and macro variables
37.10 Using
macros to fine-tune HTML or XML output
Table of Contents • Index