$substr(s,begin,end)

$substr(s,begin,end) returns the substring of s starting at 0-based index positions begin and end. If end is omitted, it means to the end of s.

The following example returns the first three characters of ${finished good}. If the value of ${finished good} is “FPB-6473”, this will return “FPB”.

$substr(${finished good},0,3)

The following example returns the value of ${part number} starting with the fifth character, and omitting the first four characters:

$substr(${part number}, 4)

See also $rsubstr().