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;
          
Conditionals may have optional "else" statements:
if (record.a = 9)
  record.b := 9.99;
else {
  float d := 10.9;
  record.b := d;
}