Control-of-flow
12 reference entries
- BEGIN...END
groups statements into a block
- BREAK
exits the innermost WHILE loop
- Control-of-Flow
none (documentation, rules or examples)
- ELSE (IF...ELSE)
alternate branch
- END (BEGIN...END)
groups statements into a block
- GOTO
unconditional jump to a label
- IF...ELSE
conditional execution
- RETURN
exits the batch or module
- THROW
raises an exception (severity 16); requires preceding ;
- TRY...CATCH
error handling: errors with severity above 10 transfer control to CATCH
- WAITFOR
blocks execution
- WHILE (and CONTINUE)
loop while TRUE; BREAK exits, CONTINUE restarts