Pascal Scripting: AddBackslash

Prototype:

function AddBackslash(const S: String): String;

Description:

Returns the specified string with a trailing backslash added, unless the string is empty or already ends in a slash or backslash.