Documentation / Tutorials / Quick Samples

Loops samples (for loop, loop on db results variable)

/ Quick Samples / Loops samples (for loop, loop on db results variable)

For loop: You can use this as normal for loop like we using in PHP or JS

Take a look in below image and check dump and use various values from counter as per your requirements.

Database query result loop:

If you Getting array as a object, please check below code

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *