mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-02-22 04:22:15 +00:00
Edited ch07.asciidoc with Atlas code editor
This commit is contained in:
parent
f00049629d
commit
4f40bb58a5
@ -389,7 +389,7 @@ To achieve this, Bitcoin Core sets the +nLocktime+ on all new transactions to <c
|
||||
|
||||
=== Scripts with Flow Control (Conditional Clauses)
|
||||
|
||||
One of the more powerful features of Bitcoin Script is flow control, also known as conditional clauses. You are probably familiar with flow control in various programming languages that use the construct +IF...THEN...ELSE+. Bitcoin conditional clauses look a bit different, but are essentially the same construct.
|
||||
((("transactions", "advanced", "flow control scripts")))One of the more powerful features of Bitcoin Script is flow control, also known as conditional clauses. You are probably familiar with flow control in various programming languages that use the construct +IF...THEN...ELSE+. Bitcoin conditional clauses look a bit different, but are essentially the same construct.
|
||||
|
||||
At a basic level, bitcoin conditional opcodes allow us to construct a redeem script that has two ways of being unlocked, depending on a +TRUE+/+FALSE+ outcome of evaluating a logical condition. For example, if x is +TRUE+, redeem script is A, ELSE redeem script is B.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user