Upcoming Socket.IO sneak peek
-
@iTap-Development said in Upcoming Socket.IO sneak peek:
@Hamed can an array be saved to file?
Yup :).
You can even put an array in an array. This next update should make hyperPad A LOT more powerful. -
@Murtaza can arrays be added dynamically like attributes?
-
@iTap-Development Values in arrays can be added dynamically. So think of the Array behaviour as something similar to a box container, you can pre-fill it with values if you want.
Then you would use the Modify Array behaviour to dynamically add items to the beginning, end, or a specific index of the array.
Another thing you can do with the Modify Array behaviour (and all the other array / dictionary behaviours) is type in an array as a JSON string. ie ["Cat", 2, 5 "Dog"] and use the modify array behaviour to add or remove values from the text dynamically. For example, the HTTP request behaviour can output values as JSON... you could input it into Get array and get the first index.
-
@Hamed so you can add an index, but can you make a completely new array dynamically. Like attributes being predefined or dynamic?
When will this update be out?! -
@iTap-Development you can only dynamically create it by typing out the json string. I feel like it will be more clear when you guys get your hands on it.
-
@Hamed ok...I think I get it.😂
-
That was great. That made my day :rofl:
-
Hahah I laughed a bit at that too.