Computes the number of characters in a string field.

ParameterTypeRequiredDefaultDescription
asstringoptional[a]_length Name of output field.
field[b]stringrequired  The name of the input field to length.

[a] Optional parameters use their default value unless explicitly set

[b] The argument name field can be omitted.

Omitted Argument Names

The argument name for field can be omitted; the following forms of this function are equivalent:

logscale
length("value")

and:

logscale
length(field="value")

length() Examples

The number of characters in the @rawstring field

logscale
length(@rawstring)

The number of characters in the @rawstring field, putting it in the field rawLength

logscale
length(@rawstring, as="rawLength")