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 :
The repeat expression provided in my previous screenshot would give 4 loops :
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 :
- how to exit the loop in that instance.
- what’s the max integer I can input in here.
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.
Last updated: