Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, 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:
If...then...else statement
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:
For loop
Provides iterative processing of items liked to the current item, or iterative processing of items in a list.
%endfor
Specifies end of a For loop.
%exit
Optional keyword that exits a For loop.
%for
Specifies start of a For loop.
While loops:
While loop
Provides conditional execution of statements.
%endwhile
Specifies end of a While loop.
%exit
Optional keyword that exits a While loop.
%while
Specifies start of a While loop.