Repeat UntilLuau✎

Runs the body, then stops once Until holds. The body always runs at least once, and Until can read the locals the body declares. For a loop that goes on while something holds, put a Not before Until.

Pending review

Repeat UntilBodyUntilCompleted
  • part of the language itself, so it works in Roblox and in Lune

Inputs

  • in:execution
  • Until:any= true

Outputs

  • Body:execution
  • Completed:execution

What it compiles to

Script StartƒxLuau ExpressionfoundRepeat UntilBodyUntilCompletedPrintLookingValue
The graph this output was compiled from.
luau
repeat
	print("Looking")
until found

Not reviewed yet