Versions Compared

Key

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

Syntax

If test Then statements End

...

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