Syntax:
Then: restart
Version Ref: 3.x
Description:
RESTART returns the user to the beginning of the processing table and puts him or her back in update mode on the first screen updated. When he or she re-records the input, the program re-processes the record, starting from the top of the table.
Examples:
You want to make sure the user enters the account number, since the following operations depend on that number being there. You could write the element as follows:
If: 5 eq ""
Then: SHOW "You Missed Account Number" ; restart
if field 5 is empty, the message "You Missed Account Number" appears on the screen. The user is returned to the first field on the first screen so that he or she can type in a valid number.
RESTART can only be used on INPUT processing. It must be the last command on the line, since anything after it will be ignored.