select
Select one of two values using an i32 condition.
core0x1B
Syntax
select
Stack Effect
[t, t, i32] -> [t]Opcode
- Hex
0x1B- Decimal
27- Bytes
[0x1b]- Encoding
0x1B- Category
- parametric
Browser Support
Core WebAssembly instruction.
Validation Rules
- Operands and result types must match the instruction signature.
- The instruction must appear in a valid structured control context.
Common Mistakes
- Using the instruction with the wrong operand type.
- Forgetting that WAT validation is stack-typed.
(func $example
;; select example
)