Concatenate parameters together

(imported topic written by jeko1791)

Hi,

I need some help concatenating multiple parameters together. Here’s the setup:

parameter “ccode” = “A001,Q004,TEM,DED,”

parameter “path” = “Y:\share”

I want to end up with a string that looks like this:

A001=“Y:\share\A001” Q004=“Y:\share\Q004” TEM=“Y:\share\TEM” DED=“Y:\share\DED”

I’ve gotten as far as concatenating the parameters together once, but cannot figure out how to get the ccode parameter at the end of the path as well.

q: concatenation "\xxx " of substrings separated by " " of (concatenation "=%22Y:\BESRepos " of (substrings separated by “,” of (“A001,Q005” & “,TEM,DED,” as string)))

A: A001="Y:\BESRepos\xxx Q005="Y:\BESRepos\xxx TEM="Y:\BESRepos\xxx DED="Y:\BESRepos\xxx

Please help, and thanks in advance.

(imported comment written by jeremylam)

You can achieve what you want by iterating (using the “it” operator):

q: substrings separated by "," of "A001,Q004,TEM,DED"
A: A001
A: Q004
A: TEM
A: DED
T: 0.124 ms
I: plural substring
 
q: (item 1 of it & "\" & item 0 of it) of (substrings separated by "," of "A001,Q004,TEM,DED", "C:\foo")
A: C:\foo\A001
A: C:\foo\Q004
A: C:\foo\TEM
A: C:\foo\DED
T: 0.180 ms
I: plural string