Overview of keywords (SDL script) — All keywords
The following keywords can be used in SDL script.
%and
Logical AND operator for evaluating conditions.
Generates an item property as a code comment.
Generates text as a code comment.
Returns the value of a standard or extended property for the current item.
%else
Optional keyword that specifies statements to run when the condition is false in an if...then...else statement.
Specifies that code is no longer generated to the active file. Closes the active file and redirects output to the previous file on the output stack.
Specifies end of For loop.
%endif
Specifies end of if...then...else statement.
Specifies end of While loop.
%error
Adds an error message to the ACS Final Synchronization Log.
%exit
Optional keyword that exits a For loop.
%file
Specifies the file to which code is generated.
Tests whether a file exists.
%for
Specifies start of For loop, which provides iterative processing of items liked to the current item, or iterative processing of items in a list.
Calls state machine generation functions.
Returns the character that is in a specified position.
Returns the length of a string.
Gets the items from a global list.
Gets the items from a local list.
Gets the value of a local variable.
Gets the value of a local variable that has been passed as a parameter to a called generation template.
Gets the value of a global variable.
%if
Specifies the condition in an if...then...else statement.
Searches for the current item in a global list.
Searches for the current item in a local list.
%isin
Searches for a substring in a string.
Evaluates whether a variable can be interpreted as a numeric.
Returns the value of a standard or extended property for the current item. The value is returned as an all lowercase string.
%list
Declares a global list.
%load
Loads a generation template.
Declares a local list variable.
Declares a local numeric variable.
Declares a local string variable
Evaluates whether the case and characters of a string match the case and characters of another string.
Declares a global numeric variable in a Generate.sdl template.
%or
Logical OR operator for evaluating conditions.
%param
Specifies local variables to pass as parameters when loading a generation template.
Optional keyword that specifies a separator for delimiting iterations of a For loop.
Sets the value of the current item's standard or extended property.
Sets the value of a global list.
Sets the items in a local list.
Sets the value of a local variable.
Sets the value of a local variable that has been passed as a parameter to a called generation template.
Sets the value of a global variable.
Declares a global string variable in a Generate.sdl template.
%then
Specifies statements to run when the condition is true in an if...then...else statement.
Returns the value of a standard or extended property for the current item. The value is returned as an all uppercase string.
Adds a warning message to the ACS Final Synchronization Log.
%while
Specifies the start of a While loop.