miniscript::Type::If

The empty type if x is false, itself otherwise.

Synopsis

Declared in <script/miniscript.h>

constexpr
Type
If(bool x) const;

Return Value

This type when x is true, otherwise the empty type.

Parameters

NameDescription
xWhether to keep this type's properties.