Returns the number of characters in a string field.
Function Traits: FieldComputationFunction
, Transformation
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | optional | _length | Name of output field. |
field [a] | string | required | The name of the input field to length. | |
The parameter name for field
can be omitted; the following forms 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")