This is the structure of the array (I can change the structure but I think this is a good starting point) so far:
Code: Select all
[
{
"car toy":
{
nickname: "some nickname"
height: "6 ft 4 inch"
...
}
},
{
"yoshi toy":
{
nickname: "dino toy"
height: "2 ft 4 inch"
...
}
},
...
]
- 1) First I need to separate any index that does not equal to the other:
if 1st index's key of array1 was "car toy" but the 1st index's key from array2 was "yoshi" then it means "car toy" was eliminated and I need to extract "car toy" into a separate array to show on a listview later. Same thing if 1st index on array1 was "car toy" but 1st index on array2 was "dino toy" then it means "dino toy" was a new item added, now I need to separate "dino toy" into that separate array.
- 2) now after separating the recently added/discarded items, I need to compare "yoshi toy"'s data from array1 with array2 and see if their nickname, price, height changed.
now I have no idea how to even begin, can AHK even get the height/nickname data without looping?