While / Do while (infinite) loops

Hello dear wappler superstars !

I’m looking for a way to implement a while loop in server connect.
Without any luck so far…

Use case : I need to produce OHLC data from trades history.
So the script should run until all history has been exhausted and formated into OHLC data for every hour of trade.
(+ in case of script timeout, work is resumed where it stops…)

It seems like the repeater only accepts integer values and not boolean expressions ?

I tried several variants of the following repeat expression :
infinite_loop

The repeat expression provided in my previous screenshot would give 4 loops :
infinite_loop_output

I tried several variant of the boolean expression (without curly braces, true directly, etc…)
My loop goes from 1 to 21 iterations maximum.

My best workaround so far would be something silly like 99999999 as a condition.
But I don’t event know :

Thank you very much for your help and have a great evening !

P.S. By the way, I’m wondering if I’m the only one who feels like a “manual for coders converting to wappler” would be very much needed ? Like a topic where we could centralise all those “little things” we are used to do in 2 minutes with code but are counter-intuitive or just not so obvious to do in Wappler.

Community Page
Last updated: