trim
This function is used by Ignition's Expression language.
Descriptionβ
Takes the argument string and trims of any leading and/or trailing whitespace, returning the result.
Syntaxβ
trim(string)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | string | The starting string. |
Resultsβ
String - The starting string with all whitespace removed.
Examplesβ
Code Snippet
trim("Hello Dave ") //returns "Hello Dave"
Code Snippet
trim(" Goodbye.") //returns "Goodbye."