Jump to content
UBot Underground

It's a headcook, creating a table from two lists!


Recommended Posts

round and round it's going and I can't work it out.

 

I have 2 lists.

 

here's one

 

a

b

c

d

e

f

g

 

 

here's the other

 

h

i

j

k

l

m

n

o

p

 

 

I want to create a text file that has the following (combines both the above in a CSV)

 

a,h

b,i

c,j

d,k

e,l

 

 

Can someone help me.

 

I am tring to add both these lists to a table in columns 0 and 1, but I just get one pasted after the other!

Link to post
Share on other sites

Try this:

 

clear list(%one)

clear list(%two)

clear list(%three)

set(#one, "a

b

c

d

e

f

g", "Global")

set(#two, "h

i

j

k

l

m

n", "Global")

add list to list(%one, $list from text(#one, $new line), "Delete", "Global")

add list to list(%two, $list from text(#two, $new line), "Delete", "Global")

set(#position, 0, "Global")

loop($list total(%one)) {

add item to list(%three, "{$list item(%one, #position)}, {$list item(%two, #position)}", "Delete", "Global")

increment(#position)

}

 

John

  • Like 1
Link to post
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.

Loading...
×
×
  • Create New...