Formatting text insertions
To format a text insertion, add a colon (:) character after the insertion and follow that by one or more style codes. Multiple codes must be separated by semicolons (;). The style codes that you can use are the same as those used by the Format function in the UNICOM Intelligence Function Library: see
Format for a list of the style codes.
The following example uses the U style code to display a named insertion called offer_code in all upper case letters:
confirm_code "Is the offer code {offer_code:U}?"
boolean { Yes, No };
The following example uses the f style code to display the value of an decimal response insertion called curr_rate to two decimal places:
pref_rate "If {#curr_rate:f2} is too high, what rate would you prefer?"
double;
The following example uses multiple style codes to display the label of the category selected in the previous question in all lower-case text:
Q11 "Your answer to the previous question was {#Q10:b;L}. Is that correct?"
categorical [1..1] { Yes, No };
Only the text style codes l, L, u, and U work for named insertions and index insertions; all other style codes are ignored. All style codes work for response insertions if the style code is appropriate for the data type of the question being referenced.
See