Scripting Arrays


#1

Is there anyway to script arrays?

data.Test = {
    iv: [
        {
            TesterAuto: 'Random Title'
        }
        ]
};

I’ve managed to set the value, but how can i get the value? Let’s say i have two propertys in the array, TesterAuto and TesterTitle (both strings), and i want the TesterAuto to get its value from TesterTitle?


#2

You should be able to retrieve like normal javascript objects

var value = daeta.Test.iv[0].TesterAuto;


#3

Oh… Yeah, of course.

Thank you!