[#BloombergLP-bslmf-If] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::If :relfileprefix: ../../ :mrdocs: This meta‐function selects `t_IF_TRUE_TYPE` if `t_CONDITION` is non‐zero. and `t_IF_FALSE_TYPE` otherwise. == Synopsis Declared in `<bslmf_if.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< int t_CONDITION, class t_IF_TRUE_TYPE = xref:BloombergLP/bslmf/Nil.adoc[Nil], class t_IF_FALSE_TYPE = xref:BloombergLP/bslmf/Nil.adoc[Nil]> struct If; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/If/Type.adoc[`Type`] | Selected type based on `t_CONDITION`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#