[#miniscript-Type-If] = xref:miniscript.adoc[miniscript]::xref:miniscript/Type.adoc[Type]::If :relfileprefix: ../../ :mrdocs: The empty type if x is false, itself otherwise. == Synopsis Declared in `<script/miniscript.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:miniscript/Type.adoc[Type] If(bool x) const; ---- == Return Value This type when x is true, otherwise the empty type. == Parameters [cols="1,4"] |=== | Name| Description | *x* | Whether to keep this type's properties. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#