I have 30 events using LocalStorage:
1.- On Item1 missing > Set var1 to 0
2.- On Item1 exists >Get item "item1value"
3.- On item1 get > Get Item LocalStorage.ItemValue
same for object 2, 3, 4, 5 and 6:
1.- On Item6 missing > Set var1 to 0
2.- On Item6 exists >Get item "item6value"
3.- On item6 get > Get Item LocalStorage.ItemValue
I'd like to optimize all of them in a single function, such as:
1.- On Item missing > Set function (familyItemIID.value to 0)
2- On item exists > function Get touchedItemvalue
2- On item get > function Get Item LocalStorage.ItemValue
Any ideas?
Thanks