Understanding If and While Statements
If and While statements are conditional instructions for an ER. They evaluate conditions and dictate the flow of logic when the ER is activated.
Use the If/While button to build conditional logic into an event. When you create an If statement, the system inserts an Else clause. However, you can use the Delete button to delete the Else clause and then reinsert it using the Insert Else button. When you delete an If or While statement, the system also deletes the associated Else and Endif or Endwhile clauses, but not the lines inside of those statements.
You can drag and drop statements line-by-line to change their sequence. Resequencing ER can result in improper syntax. When you click the Save or OK button, the system verifies the syntax. If it detects syntax errors, you can either disable the ER and continue or edit the ER to eliminate the errors
To change a statement, double click the line.
To delete a statement, choose the line of the statement, and then click the Delete button.