Skip to main content
Version: 8.1

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

    • 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."