Integrations (PTC products, 3rd party products and code) > Code integration (Ada, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > Keywords > Overview of keywords (SDL script) — Keywords for if...then...else statements and loops
Overview of keywords (SDL script) — Keywords for if...then...else statements and loops
If...then...else statements:
Provides conditional execution of statements.
%else
Optional keyword that specifies statements to run when the condition is false.
%endif
Specifies end of an if...then...else statement.
%if
Specifies the condition in an if...then...else statement.
%then
Specifies statements to run when the condition is true.
For loops:
Provides iterative processing of items liked to the current item, or iterative processing of items in a list.
Specifies end of a For loop.
%exit
Optional keyword that exits a For loop.
%for
Specifies start of a For loop.
While loops:
Provides conditional execution of statements.
Specifies end of a While loop.
%exit
Optional keyword that exits a While loop.
%while
Specifies start of a While loop.