Transferring Statements Goto Branching StatementsTransfers execution to another point in code defined by a text label. GoSubTemporarily transfers execution to another point in code, defined by a text label. On GotoTransfers execution to one of a number of points in code defined by text labels, based on the value of an expression. On GosubTemporarily transfers execution to one of a number of points in code defined by text labels, based on the value of an expression. ReturnIf..End If Executes a block of statements if a condition is met. ..Else If..Executes a block of code if a condition is met and all previous conditions weren't met. ..Else..Executes a block of code if all previous conditions weren't met. Select..End SelectExecutes one of a number of statement blocks using a set of conditions. ..Case..Executes a block of code if a condition is met. ..Case Else..Executes a block of code if all previous conditions weren't met. Intra-branch control | Looping Statements While..Wend Executes a block of statements while a condition is met. For..NextExecutes a block of statements while an iterator is less than or greater than an expression. Do..LoopExecutes a block of statements while or until a condition is met. Intra-loop controlContinue While, Continue For and Continue Do Prematurely re-enters a loop. Exit While, Exit For and Exit DoPrematurely breaks out of a loop. |