Is there a while function in GS?
Yep. It's actually the default "loop" behavior. See my project attached. You can also change the loop condition to "until"
Note that the actual looping I'm doing could be done in a better way by using the Loop over Table behavior, but...just showing this loop.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx