hi guys. How i can push variable into an array in SugarCube1?
i have this code:
<<set $inv_lab to []>>
<<set $meteorite = {
"available": "False",
"name": "Rock",
"weight": 30,
"cost": 1000
}>>
<<set $inv_lab.push("$meteorite")>>
but i get this
Error: <<set>>: bad evaluation: Cannot read property 'push' of undefined
what im doing wrong?