Returns the number of characters in a string field.

ParameterTypeRequiredDefaultDescription
asstringfalse_lengthName of output field.
fieldstringtrue The name of the input field to length. [a]

[a] If an argument name is not given, field is the default argument.

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")