GOTO        Non-conditional branch to script file label

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands >

GOTO        Non-conditional branch to script file label

Syntax:

GOTO

[ label ]

Arguments:

[ label ]

A valid label within the current script file.

Options:

None


 

 

This command directs the flow of execution within a script file to the specified label. Even though script file labels begin with a colon, the colon is omitted in the GOTO and other branching commands. For example:

 

SETNUM download_count = 000

:loop

RCVFILE "*" /delete

INC download_count

DASHBOARDMSG "Downloads attempted: " + download_count

GOTO loop

 

 

Related command(s): LOOPIF

See also: Labels In Script Files