Loop

Modified on Wed, 22 Jun 2022 at 10:30 AM

Loop


In this element, you get to set the number of times you want to loop over something. Instead of iterating over each element, you can choose a specific number.


Example


In this example, there is a loop that is being called when the Page is constructed. The count is set to 3, so it will construct three containers, and for each one it will set the (unseen) button in the container's text label to the index in the loop. The index also passes through a To String component to parse it from a number to a string that a text field can utilize. The result of this function should be three buttons, labeled "1", "2", and "3".


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article