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
Loops are often coded with for loops, which provide a convenient means of looping over some or all of the records in an input window, or all of the data in a vector or dictionary.
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 August 28, 2012. Send feedback on this help topic to Sybase Technical Publications:
pubs@sybase.com