Cypher lTrim Function

lTrim() returns the original string with leading whitespace removed.

Syntax: lTrim(original)

Returns: A String.

Arguments

NameDescription
originalAn expression that returns a string.

Example

RETURN lTrim(" Hello, World! ")

The value returned will be a string that will be similar to the original string except all the leading whitespace would have been removed. Hence the returned string will be “Hello, World! “.

Considerations

  • lTrim(null) returns null.

Example

RETURN lTrim(" Cypher Tutorials!")

Returns the following Result

lTrim(" Cypher Tutorials!")
"Cypher Tutorials!"

Example

RETURN lTrim("Cypher Tutorials! ")

Returns the following Result

lTrim("Cypher Tutorials! ")
"Cypher Tutorials! "

Example

RETURN lTrim(" Cypher Tutorials! ")

Returns the following Result

lTrim(" Cypher Tutorials! ")
"Cypher Tutorials! "

Example

RETURN lTrim("Cypher Tutorials!")

Returns the following Result

lTrim("Cypher Tutorials!")
"Cypher Tutorials!"

Example

RETURN lTrim(null)

Returns the following Result

lTrim(null)
null

NotelTrim(null) returns null.

Learn More