Path: blob/main/files/en-us/webassembly/reference/control_flow/index.md
6510 views
------{{WebAssemblySidebar}}
WebAssembly control flow instructions.
: Creates a label that can later be branched out of with a
br.
: Branches to a loop or block.
: Calls a function.
: Pops a value from the stack, and discards it.
: Can be used to end a
block,loop,if, orelse.
: Executes a statement if the last item on the stack is true (
1).
: Creates a label that can later be branched to with a
br.
: Does nothing.
: Returns from a function.
: Selects one of its first two operands based on a boolean condition.
: Denotes a point in code that should not be reachable.