Jump to content

How to concatenate two list variables


Nydia Neuss

Recommended Posts

Hello

I know that variable lists (e.g. [“var1”,”var2”]) are very useful when used in task parametric options: however sometimes I had the need to use a concatenation of lists in parametric option, but I don't know how (and if) it can be done. In particular I would like to use in a Fill & Clean task a variable list that is the concatenation of the list contained in the process variable @var1 and @var2.

Thanks!

Link to comment
Share on other sites

You can do that simply using the function cat().

If you want to use a list composed by @var1 and @var2 in your Fill & Clean task, you have to write in your parametric option the following line:

cat(@var1,@var2)

Generally speaking, cat() function allows you to concatenate 2 lists only.
If you want to concatenate three or more (e.g. @var1, @var2 and [“A”,“B”,“C”]) you have to write:

cat(cat(@var1,@var2),[“A”,“B”,“C”])

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...