NairnFEAMPM Icon

GoSub Command

The GoSub command is used to call subroutines. The calling format is

GoSub subname (arg1),(arg2),...(argn)

where

Notes

  1. All variables are global variables. Thus subroutines can use variables set in the main commands and the main commands can access variables defined in the subroutines including subroutine arguments. If a subroutine argument matches a variable from the main commands, calling the subroutine will overwrite that value.