lTrim()
returns the original string with leading whitespace removed.
Syntax: lTrim(original)
Returns: A String.
Arguments
Name | Description |
original | An 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)
returnsnull
.
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 |
Note– lTrim(null)
returns null
.