[#mrdocs-isEmpty]
= xref:mrdocs.adoc[mrdocs]::isEmpty
:relfileprefix: ../
:mrdocs:

Determine if a value is empty

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;Handlebars&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isEmpty(xref:mrdocs/dom/Value.adoc[dom::Value] const& arg);
----

== Description

This is used by the built&hyphen;in if and with helpers to control their execution flow&period;

The Handlebars definition of empty is any of&colon;

* Array with length 0
* falsy values other than 0

This is intended to match the Mustache Behaviour&period;

== Return Value

True if the value is empty, false otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *arg*
| The value to test
|===

== See Also

https&colon;&sol;&sol;mustache&period;github&period;io&sol;mustache&period;5&period;html&num;Sections


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