Compact (String)
Name | Compact |
Syntax | Compact (String str) |
Purpose | To return the resulting string after removing all leading, trailing, and consecutive white space characters. |
Description | Removes all leading and trailing white space characters from the string. Also removes any duplicate white space characters within the string. White space characters include space, tab, return, and linefeed characters. |
Return Type | String |
Parameters | Str [System.String] – String that will be compacted |
Example
In this example, we are passing the required parameter to the function transformation object using a Variables object.
Where,
str = Hello World A B C
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned the specified string after removing all white space characters.
Last updated