Skip to main content

Binary size

XML
<size var="var">
string
</size>

<size /> returns the binary size of a value in bytes.

Attention:

The binary size of a multibyte character sequence may not match the length of its string representation.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name size

Results

BindingTypePredicate
varintN/A

Examples

XML
<set var="name"/>
<size var="size">$name</size>

<if value1="$size" func="=" value2="0">
<output>My name is empty!</output>
</if>

<!-- My name is empty! -->