Back to List
Placeholder | Replace With |
text | A Text variable or other expression that produces a text result |
text
(optional) |
A character or text string that can be used in place of the space character. You can include the following special characters in your search: \\ -- backslash character \h -- non-breaking hyphen \l -- line break \p -- paragraph mark \s -- non-breaking space \t -- tab |
This expression tests whether the variable is answered. If it is, it merges the answer, followed by a space character. If the variable is unanswered, it merges nothing ("").
For example, perhaps you need to merge a client's full name. Some clients, however, do not have a middle name. You can create a script that includes this middle name (if it's provided), followed by a space. If no middle name is given, nothing will be merged.
ClientFirstName + " " + space( ClientMiddleName ) + ClientLastName
Sometimes you may want to merge a character other than a space. The second optional parameter for this expression allows you to specify what this character should be.
In the following example, the script uses the space expression to determine if each of the variables in the address block are answered. If so, it merges the answer to the variable, followed by a line break character (rather than a space character). This merges each "part" of the address on its own line.
space( ClientAddressLine1, "\l" ) +
space( ClientAddressLine2, "\l" ) +
space( ClientCity, "," ) + space( ClientState ) + space( ClientZipCode )
Back to List