reference:evaluator:concatpath

ConcatPath(
     string:part1,
     string:part2,
     [string:part...]
)
string

Arguments

part1

First path part.

part2

Second path part.

part...

Optional. Additional parts to add...

Return value

Concatenate one or more strings into a single path.

Description

Directory Opus 13.22.4 and above.

Joins one or more strings together into a path and returns the result. Empty strings are skipped.

Similar to Concat, but you don't need to specify the path separator or number of components.

By default, a backslash "\" will be used as the path separator. A forward slash "/" will be used instead if one or more of the parts already contains a forward slash "/" and none of the parts contain any backslashes.

Example:

Output(ConcatPath("C:\Program Files", "GPSoftware", "Directory Opus"));
--> C:\Program Files\GPSoftware\Directory Opus

Output(ConcatPath("C:/Program Files", "GPSoftware", "Directory Opus"));
--> C:/Program Files/GPSoftware/Directory Opus

See also: Concat