Returns the number of characters in a string field.
Name | Type | Required | Default | Description |
---|---|---|---|---|
field | string | Yes | The name of the input field to length. | |
as | string | No | _length | name of output field |
field
is the unnamed parameter.
The number of characters in the @rawstring field
length(@rawstring)
The number of characters in the @rawstring field, putting it in the field rawLength
length(@rawstring, as="rawLength")