Developer Documentation Library > Scripting > mrScriptBasic overview > mrScriptBasic language reference > Statements > Section
 
Section
A Section structure groups together a series of statements.
Syntax
Section label ([IsLocked = value])
  statements
End Section
Argument
label
A name to identify the section.
The name can be any combination of characters; it must start with a letter. Each section must have different name.
Section labels can be used as the target location of GoTo statements.
IsLocked = value
True prevents users from adding new content to the section in UNICOM Intelligence Author.
Users can unlock the section only if the IsProtected custom property for the section is not True (see also Protecting questions). If the question is protected, a user can edit it only if they have the Can edit protected questions feature assigned.
Remarks
Sections can be nested.
Examples
The following example shows how to use Section blocks when you define the routing context of an interview script that will be activated in version 3.0 (or later) of UNICOM Intelligence Interviewer:
Section MyQuestions
Q1.Ask()

' If the No Answer special response was
' selected, go to section Q3Val...
If Q1.Response.Coded = {NA} Then
Goto Q3Val
End If

Q2.Ask()

Section Q3Val
Q3.Ask()
If Q3 = {NA} Then
Q3a.Ask()
End If
End Section

Q4.Ask()

End Section
See also
Statements