Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If test Else statements End

Example

Code Block
*Using multiple-line If statements

...


/* If the value of INV_COUNT is more than 144, the program will transfer to subroutine GROSS.

...

 
If the value of INV_COUNT is less than or equal to 144,

...

 
the program transfers to subroutine NOTGROSS for reordering. */

...


If

...

 inv_count

...

 GT 144

...

  GoSub GROSS
End Else
  GoSub NOTGROSS
 Then
  GoSub GROSS
End Else
  GoSub NOTGROSS
End