#endregion

Top  Previous  Next

 

The #endregion directive is part of a pair of directives used to specify the end of a block of code to expand or collapse when using the outlining feature of Pipeline Runner Studio. You can nest regions within other regions to group similar regions or blocks of code together.

 

The #endregion directive must be preceded by a  #region directive.

 

Syntax

 

#region [Identifying Name]

 

// 0 or more commands

 

#endregion [Identifying Name]

 

The #region and #endregion commands are compulsory. Neither is case sensitive, although all lower case is strongly recommended.

 

The Identifying Name is optional for both directives but very strongly recommended for the #region directive in order to make it easier to identify its content when collapsed.  Supplying a name for the #endregion directive can be helpful when using nested regions in order to make it clear to which #region directive it relates.

 

Example

 

[Setup]

 

#region Remarks

    

[Example User Heading]

 

Remark:This is a remark command

Remark:This is another remark

 

#endregion

 

See Also: Outlining #region