I would need a ray of knowledge regarding the infamous arrays!
I've always tried to avoid them! But continuing in the studies of LC, I think I can not do without it!
Now, even reading all the lessons available on the site, I have not understood them well!
Excuse me, but it's not totally my fault! Until I deal with fields and variables (which for me are an "abstraction" of a field) I understood, but the arrays are a bit complex because, at least I think, I do not have any computer literacy. Sorry, I try to ask for help as little as possible!
That said, I'll give you this example that I can not solve:
I created a csv field of this type:
Type of cake, number of cakes in the fridge, temperature, chef
Cheese cake, 3, 5 °, Sandra
Banana cake, 2, 4 °, Mariasole
Banana cake, 1, 4 °, Zoe
Banana cake, 5, 4 °, Filippa
Cheese cake, 1, 5 °, Fabiana
Cheese cake, 5, 5 °, Marta
Raspberry cake, 1, 0 °, Marta
Strawberry cake, 3, 0 °, Mariasole
Now, I have to load this list into an array.
This I understood how to do it (at least in part!)
Code: Select all
put field 1 into theData
split theData by return and comma
Banana cake = 5, 4 °, Filippa
But I wanted (in short, I expected):
Banana cake = 5 = 4 ° = Filippa
I also tried to write this (I am ashamed!):
Code: Select all
split theData by return and comma and comma and comma
I would like to use this list for example to get this result.
How many cakes do we have in the fridge for the next party?
The result that I expect would be this:
Banana cake, 8
Cheese cake, 9
Strawberry cake, 3
Raspberry cake, 1
But I do not understand how to isolate only certain parts of the array and add them. To put them in order I found instead how to do!
Is there anyone who can help me to understand?
Thank you so much to everyone !!!!
Peace and love!
(=^..^=)
Mariasole