Optional parameters
You can define parameters as optional with the OPTIONAL keyword. When the keyword is used, the Document Template developer can omit providing values for these parameters when defining a Document Template. If an optional parameter is not explicitly assigned a value, the default value is used. If no default value is specified or if the parameter is of a type that does not allow default values, the value is set to an empty string during composition.
PARAMETER TYPE Name_of_parameter OPTIONAL
Examples are provided here.
PARAMETER TEXT Sender
OPTIONAL DEFAULT “J. Doe”
PARAMETER FORM Questions
DESCRIPTION “Additional questions to provide data for this document.”
OPTIONAL
IF _Template.Questions <> “” THEN
FORM VAR _Template.Questions
DATA _data
FI