I’ve finally stopped procrastinating and have decided to create some challenges for myself.
My first one is as follows:
I have two lists
$MyList1: Tom;Mary;Steven;Beth
$MyList2: Brown;Johnson;Smith;White
And I want to create $MyList3: Tom Brown;Mary Johnson;Steven Smith;Beth White
I think I understand in principle what I need to do, but I’ve got no idea how to express my ideas correctly in code.
// Create two variables
var:list vNameFirst
var:list vNameLast
$MyList3=;
$MyNumber3=;
// Use .each() to loop through each list, but this is where I’m not sure what to do.
$MyList1.each(vNameFirst);
$MyList2.each(vNameLast) {
$MyList3 = $MyList1 + $MyList2
};
$MyNumber3 = $MyList3.count;
It doesn’t work, of course. And I know it’s wrong and I understand that I need to do something else. And maybe there’s an easier way to do this. And yes, I could copy and past into other software then import the list into Tinderbox, but I have a feeling that if I can understand how to complete this task, then it will help me with other challenges.