Does anyone happen to know if its possible to do a...
# help
g
Does anyone happen to know if its possible to do a loop in step functions given a number for the amount of times it should loop rather than a list of items? I know I could use a lambda to transform into an array but if I can do it without that would be nice.
f
afaik, i don’t know if u can perform an ADD operation in a step function task without using Lambda to simulate the if statement.
I know u can do string manipulate, but not math operations…
Why can’t u use a list just curious?
g
It wouldn't be an add operation but it would be a number supplied to the step function specifying how many loops I would want. I can supply the list I was just curious if it was possible not to as every loop does exactly the same thing so the actual list elements are meaningless. What I am doing is a countdown timer that every minute sends a websocket update with the time left just in case clients get out of sync with how much time is left.
f
Gotcha