RTrim

Turn the given value into a String and remove any trailing whitespace.

rtrim turns the given value into a String and removes any trailing whitespace characters before returning the result.

Usage:

String.rtrim()

Or

rtrim(String)

Returns:

String: The passed string with any trailing whitespace removed.

Example:

set a = "Hello From ";

echo "$a Ortelius";

echo "${a.rtrim()} Ortelius";

Result:

Hello From Ortelius

Hello From Ortelius
Last modified December 18, 2020: reorganzise sections (85d5aef)