Skip to content

PROLOG

Introduction

The PROLOG section allows you to define metadata which is attached to your survey.

It is a sequence of KEY = VALUE lines, where the values are integers, strings or lists of strings.

If present, the PROLOG section must appear as the first section in your DSC script. It may not appear by itself in a DSC script - it must be followed by one or more other sections.

Syntax

An assignment in the PROLOG section has the following syntax:

IDENTIFIER '=' STRING
IDENTIFIER '=' INTEGER
IDENTIFIER '=' '{' STRING [, STRING [, ... ] ] '}'
IDENTIFIER '=' '[' STRING [, STRING [, ... ] ] ']'

Where:

  • IDENTIFIER is the name of the definition
  • STRING is literal string value enclosed in quotes
  • INTEGER is a literal integer value including negatives

All white-space outside a STRING, including line breaks are ignored.

Examples

PROLOG

key1="string"
key2=33  key3=-33
key4={"item 1","item 2"}
key5=["item 3","item 4"]