[#miniscript-Type-If]
= xref:miniscript.adoc[miniscript]::xref:miniscript/Type.adoc[Type]::If
:relfileprefix: ../../
:mrdocs:

The empty type if x is false, itself otherwise&period;

== Synopsis

Declared in `&lt;script&sol;miniscript&period;h&gt;`

[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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| Whether to keep this type&apos;s properties&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
