conditional statement branches unconditionally and without return
to the label specified in the
statement. The label must be located in the same subroutine or
function as the
If <condition> then
In this example, CitectVBA tests the If condition, and jumps to the part of the script that begins with the label "Label1:" if the condition was true, or jumps to the part of the script that begins with the label "Label2:" if the condition was false. This could be anywhere in the same subroutine or function.