Variable Formats, Names, and Parameters

You can format variables to calculate values or add the current date and time.
Formats Names and parameters Examples
Numeric $Bates(simple-variable-value, width) $RomanNum(simple-variable-value) $RomanNum(simple-variable-value, width) $RomanLowerNum(simple-variable-value) $RomanLowerNum(simple-variable-value, width) simple-variable-value, "increment-step") $Reverse (simple-variable-value, "increment-step") $Calculate (expression) may contain numeric values and other simple variable-values that are also numeric, characters + - * / ()

Where: width: numeric-param, minimum width of number. $Bates numbers are padded with 0. $Roman… numbers are padded with space.

On page 22 of a volume:

$Bates($VR, 6) resolves to 000022 $RomanNum($VR) resolves to XXII $RomanLowerNum($VR, 6) resolves to xxii

$Calculate - Calculates a start value by performing addition, subtraction, multiplication, or integer division. This function can accept any integer or variables that can be resolved as integers. The variables must be surrounded by curly braces ({}). Examples of variables are ARP and VT. This function can also accept the operands +, -, *, or /. $Calculate provides static value. It does the calculation once and no further increments happen based on a variable changing (LR in the following example). This example will create a page number defined by the LR variable plus 1: $VAR = $Reverse($Calculate(${LR}+1),"1")

$Reverse - Submits a negative integer as the increment for a dynamic attribute. This function accepts two parameters: any integer as Start Value, and a negative integer as an increment. The negative integer must be in double quotes. Using reverse numbering for a document of 100 pages, the first page number will be 100 and the last page will be 1. This function can be applied in a user-defined variable, as in this example for numbering a document to comply with Mexico submission requirements: $VOLRPGNUM = $Reverse($Calculate(${ARP}+${VT}-${VR}*2+1), "-1")

String n/a n/a
Date/Time The entire date/time value is formatted in a single call.

$DateTime(simple-variable-value format-string)

Where: format-string: A date and time pattern.

$DateTime(${CT}, "EEE dd MMM yyyy HH:mm:ss Z")