CitectVBA Programming Reference > CitectVBA Function Reference > Conditional Statements

Conditional Statements

Do Loop

Allows you to execute a block of statements an indefinite number of times.

End Function

Ends a block of statements such as a Sub procedure or function.

Exit

Exits a loop or procedure.

For

Repeats its block of statements a set number of times as determined by the values used with the To clause.

Goto

Branches unconditionally and without return to the label specified in the GoTo statement.

If

Tests an initial condition and then either performs or omits to perform the statements it contains, dependant upon the logical result of the test condition.

OnError

CitectVBAs error-handling routine and specifies the line label of the error-handling routine.

Select

Tests the same variable for many different conditions.

Stop

Ends execution of the program.

While...Wend

Similar to the Do While loop statement.

With

Not supported in CitectVBA.