Zum Hauptinhalt springen

Binary size

Anatomy

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

Description: 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

Example

<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! -->