length

Returns the length of the value. The length of a value has different meanings depending on the value type:

  • if value type is binary the length is the number of bytes of the value,

  • else the length is number of characters of the string representation of the value.

See also $, $val, $value.

Syntax

length()

Examples

Get the binary value’s length in bytes:

$('BINARY').length()