Click or drag to resize

length Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
length Function

The length function returns the length of a given object.

Syntax

Alchemy
length(ident);

Nomenclature

identRequired. An object to find the length of.

Returns

The length function returns an integer. Given:

  • an array length will return the number of elements in the array
  • a string length will return the number of characters in the string
  • a line length will return the length of the line in meters

Example

$arr = array.new("T","e","l","o","g","i","s");
PRINT length($arr);
PRINT length("shapefile");

The above code snippet produces the following output:

7

9