-
Functions
- Abort
- AbortProtect
- Break
- Catch
- CatchExceptions
- CheckAbort
- ChoiceDialog
- Confirm
- ConfirmAssert
- ConfirmBy
- ConfirmMatch
- ConfirmQuiet
- Continue
- Dialog
- DialogInput
- DialogReturn
- Enclose
- Exception
- ExceptionQ
- ExceptionTypeRegisteredQ
- ExceptionTypes
- Goto
- Input
- Interrupt
- Label
- MemoryConstrained
- Pause
- PropagateAborts
- RegisterExceptionType
- Return
- Throw
- ThrowException
- TimeConstrained
- WithCleanup
- Related Guides
- Tech Notes
-
-
Functions
- Abort
- AbortProtect
- Break
- Catch
- CatchExceptions
- CheckAbort
- ChoiceDialog
- Confirm
- ConfirmAssert
- ConfirmBy
- ConfirmMatch
- ConfirmQuiet
- Continue
- Dialog
- DialogInput
- DialogReturn
- Enclose
- Exception
- ExceptionQ
- ExceptionTypeRegisteredQ
- ExceptionTypes
- Goto
- Input
- Interrupt
- Label
- MemoryConstrained
- Pause
- PropagateAborts
- RegisterExceptionType
- Return
- Throw
- ThrowException
- TimeConstrained
- WithCleanup
- Related Guides
- Tech Notes
-
Functions
Flow Control
Traditional procedural programming languages typically require programmers to define an explicit "flow of control" at every stage in their programs. The Wolfram Language provides standard flow control primitives, with various symbolic extensions—though its higher-level programming paradigm usually frees programmers from having to specify the details of flow control.
Return — return from any function
Break, Continue — break, continue in procedural looping constructs
Goto, Label — largely obsolete explicit procedural flow control
Throw — "throw" any expression to be "caught" by a surrounding Catch
Confirm — confirm that evaluation of an expression does not generate a failure
Enclose — catch errors detected by Confirm, etc.
ConfirmBy ▪ ConfirmMatch ▪ ConfirmQuiet ▪ ConfirmAssert
Exception — create an exception of a specific type
ThrowException — throw an exception of a specific type
CatchExceptions — catch and handle exceptions of specified types
ExceptionQ ▪ ExceptionTypes ▪ RegisterExceptionType ▪ ExceptionTypeRegisteredQ
WithCleanup — do cleanup before returning the value of an expression
Abort — generate an abort
Interrupt ▪ CheckAbort ▪ AbortProtect ▪ PropagateAborts
TimeConstrained, MemoryConstrained — run with constraints
Pause — pause for a specified time
Dialog — initiate a subsession dialog