I have drank tea, coffee and Jolt Cola to awaken my mind but it hasn’t worked so far. With that said….
I am looking for a plain English primer or explanation on how to do something that even a 2 yr old can understand. My brain is just not the idea of how something is done conceptially based upon the current reading/sites I have found.
What I want to do is create 2 arrays:
[code]
[I]var blah = new Array(“blahA”, “blahB”) [/I]
[I]var widget = new Array(“widgeA”, “widgeB”, widgeC”[/i]
// assign each item in the arrays with multiple fixed values –
blahA = val1, val2
blahb = val3, val4
widgeA = val5, val6
widgeB = val7, val8
widgeC = val9, val10
// with these results, I then do the following:
function doitnow {
if blah = blahA
and widget = widgeA
then val1 – val5
if blah = blahB
and widge = widgeA
then val3 – val5
if blah = blahA
and widget = widgeB
then val1 – val7
and so on…
}
Could someone try to explain or point me to a primer on how to do this in such a way that even a 2 yr old can understand? That is what it seems like my mental capacity is today. Maybe I need drink some more tea/coffee/Jolt Cola…