Chapter 4-1: ILF Integration Cover Page Using ILF RoutinesThe Components of a Statement

An Example of a Statement


Like traditional programming languages, the ILF has its own set of rules and syntax that you follow when developing routines. For example, the following set of statements sets a work field value to the constant 10 and checks to see if a second field is equal to or greater than 10. Based on the result, the routine either calculates a revised total or ends without further action.

      SET      TAP WORK COUNT                 =      10
      IF       1EX MONTH                      GE     10
T     COMPUTE  1EX WORK TOTAL AMOUNT          +  TAP WORK AMOUNT
F     END

This statement series contains four different keywords (SET, IF, COMPUTE, and END). Although each statement has its own format, there are common patterns among all of them. For example, the keyword always starts in the same character position and is no longer than eight characters long. Many keywords require you to specify a field name, and some (such as IF) require a second field name or a constant to identify the two things that are being compared. The T and F at the beginning of the COMPUTE and END statements provide a condition-testing facility that allows you to dynamically control whether or not a statement executes at runtime.

 

APPX Application Design Manual (01/13/03) Cover Page Using ILF RoutinesThe Components of a Statement

© 2003 by APPX Software, Inc. All rights reserved