SPLASH has statement forms for expressions,
blocks,
conditionals,
output,
"break" and
"continue",
"while" and
"for" loops,
as well as blocks of statements.
Block Statements
Statements can be a sequence of statements, wrapped in braces, with optional variable declarations.
Conditional Statements
Use conditional statements to specify an action based on whether a specific condition is true or false. Conditional statements in SPLASH use the same syntax as conditional statements in C.
Control Statements
Use control statements to terminate or restart both while loops and for loops.
Expression Statements
You can turn any expression into a statement by terminating the expression with a semicolon.
For Loops
Use for loops to iterate once over the records in a window, or the data in a vector or dictionary. To iterate multiple times over the records, use a window iterator. They ensure that the data is consistent while they are in use.
Output Statements
The output statement schedules a record to be published in the output stream or window.
Print Statement
Concatenates and prints the given string arguments to standard out (stdout), which is redirected to esp_server.log.
Switch Statements
The switch statement is a specialized form of conditional.
While Statements
While statements are a form of conditional processing. Use them to specify an action to take while a certain condition is met. While statements use the same syntax as while statements in C and are processed as loops.
Created December 18, 2013. Send feedback on this help topic to Technical Publications:
pubs@sap.com