Syntax

Top  Previous  Next

 

The script Syntax is really simple.

 

Script Sections are used to group and separate the actions to be taken when the pipeline is run. A script can have an optional Setup Section, an optional Notification Section, and must have at least one or any larger number of User Sections.

 

Variables are defined by using the Var command followed by a colon and then the variable name and value.  These can then be used throughout the script if declared in the Setup section or in the section of the script in which they are declared.

 

Constant Expressions are variables that are available for use globally within the script, but which are predefined and so do not have to be actually declared before you can use them

 

Commands are defined by using the name of the command followed by a colon and the values needed for the command. Within the sections you can use commands to create local variables, those available only within the current section, and then use those along with any global variables to make using other commands in that section less complex and reduce the chances of error.

 

Conditional Commands are defined using the Conditional command followed by a colon and then the Validation command to be evaluated and the Executable Command to be executed if the Validation is successful, along with the parameter values needed for both  commands

 

Command Groups are used to group actions together when a script is run, typically to allow them to be run conditionally based on the result of a conditional command. A Command Group is defined using the Begin command, then one or more other commands, followed by an End command. The commands between Begin and End will be executed as a group.

 

That is it!

 

See Also: Script Sections Variables Constant Expressions Commands