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.

For example:
if (record.a = 9)
  record.b := 9.99;
Note: You are not limited to a single statement. It is also possible to have a block of statements after the "if" condition, similiar to the following example:
if (record.a > 9) {
  float d := record.a;
  record.b := d*5;
};
Conditionals may have optional "else" statements:
if (record.a = 9)
  record.b := 9.99;
else {
  float d := 10.9;
  record.b := d;
}