Working with Arrays?

I had a bit of down time today so I thought I would explore learning something new in Wappler. I chose Arrays and they are a completely foreign concept for me.

I was able to work through the documentation no problem.

But my question is ‘now what?’. What and when would you use Arrays? Any good examples?

I feel like I am missing out on something powerful. :wink:

I have make grateful use of arrays when adding items to a shopping cart.

Other uses include: an array of image names stored in a single field of a table in a database, or an array of options associated with a product, or an array of … (let your imagination go).

Have a look at https://www.w3schools.com/js/js_arrays.asp

2 Likes

Thanks Ben. I will look more into it.

1 Like

Array values can be also used to filter a database query directly using the IN and NOT IN conditions - for example if you have some categories listed as buttons and the user clicks them.

1 Like