TACL Reference Manual

Summary of Commands and Built-In Functions
HP NonStop TACL Reference Manual429513-018
7-17
Controlling Program Flow
Controlling Program Flow
Table 7-13 lists built-in functions and variables that provide program control flow for
TACL programs.
#LINEFINDV Locates string in variable, searching forward from line
address
#LINEGET Gets copy of specified number of lines from a variable
#LINEGETV Copies specified number of lines from one variable to
another
#LINEINS Inserts text into a variable at line address
#LINEINSV Inserts string into a variable at line address
#LINEJOIN Deletes line break at end of a line, joining following line to
it
Table 7-13. Flow Control Built-In Functions and Variables
Function Description
#CASE Chooses one out of a set of options
#ERRORTEXT Used with exception handlers to catch error text
#EXCEPTION Determines why a routine was invoked during exception handling
#EXIT Holds state of exit flag
#FILTER Indicates which exceptions a routine can handle
#IF Executes one of two options
#LOOP Repeatedly executes one or more statements in a function
#RAISE Defines exception to be filtered by routines
#RETURN Exits from a routine immediately
#ROUTINENAME Obtains name of variable in which containing routine resides
#WAIT Specifies variables for which a routine must wait
Table 7-12. Data Manipulation Built-In Functions and Variables (page3of3)
Function Description