APPX Software Library

Chapter 4-2: True/False Status Indicators

Adding Execution Conditions

Now consider the following modification to the example in Using AND After an IF Statement:

   T      IF   TAR CUSTOMER BALANCE   GT 0
   T      AND  TAR WORK ON ACCOUNT AMOUNT NE 0

Notice that the first execution condition of each statement now has a T in it. Adding the Ts results in the following:

The IF statement executes only if the level 1 true/false status indicator is T.

If it executes, the IF statement sets the level 2 indicator to T or F, as appropriate.

The AND statement executes only if the level 1 indicator is T and the level 2 indicator is T. (If the level 2 indicator is already F, there is no need to execute the AND statement.)

The AND statement changes the level 2 indicator to F if the AND statement is false; otherwise, the level 2 indicator is preserved (left unchanged as T).