View Source BitcoinLib.Script.Opcodes.FlowControl.Else (BitcoinLib v0.4.7)

Based on https://en.bitcoin.it/wiki/Script

Word OP_IF Opcode 103 Hex 0x67

if [statements] [else [statements]]* endifIf the preceding OP_IF or OP_NOTIF or OP_ELSE was not executed then these statements are and if the preceding OP_IF or OP_NOTIF or OP_ELSE was executed then these statements are not.

Link to this section Summary

Functions

Returns <<0x67>>

If the top stack value is not False, the statements are executed. The top stack value is removed.

v()

Returns 0x67

Link to this section Functions

@spec encode() :: <<_::8>>

Returns <<0x67>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.FlowControl.Else.encode()
<<0x67>>

If the top stack value is not False, the statements are executed. The top stack value is removed.

@spec v() :: 103

Returns 0x67

examples

Examples

iex> BitcoinLib.Script.Opcodes.FlowControl.Else.v()
0x67