You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Syntax

If test Then statements End

- OR -

If test Then statement Else statements End

- OR -

If test Then statements End Else statement

- OR -

If test Else statements End

Example

*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 Then
  GoSub GROSS
End Else
  GoSub NOTGROSS
End
  • No labels