Migration from properties to list
// we have array with products prices
var priceList = Bot.getProperty("priceList")
if(!priceList){ priceList = [] }
var curProduct = { name: 'Apple iPhone 25', price: 5100 }
// we store all products in property priceList
Bot.setProperty("priceList", priceList, "json")Bot.sendMessage(priceList[0].name + ":" + priceList[0].price)Bot.setProperty({
name: 'Apple iPhone 25',
value: 5100,
type: 'float',
list: 'priceList' // bot list will be created if not exist
});Last updated