While LoopLuau✎

Repeats the body while the condition holds. Any value can be the condition; only nil and false stop it. Bind, in the Inspector, writes while local item = queue[1] do and hands each pass's item to the body as a pin: a loop that runs while something comes back. while local is a Studio beta: turn on If Local/Const Bindings in Studio's Beta Features.

Pending review

While LoopBodyConditionCompleted
  • part of the language itself, so it works in Roblox and in Lune

Inputs

  • in:execution
  • Condition:any= true

Outputs

  • Body:execution
  • Completed:execution

What it compiles to

Script StartƒxLuau ExpressionrunningWhile LoopBodyConditionCompletedPrintTickValue
The graph this output was compiled from.
luau
while running do
	print("Tick")
end

Not reviewed yet