A Branch or a While Loop can bind its condition, as Luau's proposed if local does.
0.231.x2026-11-12
Feature
A Branch or a While Loop can bind its condition, as Luau's proposed if local does.
Release
0.231.0A Branch or a While Loop can bind its condition, as Luau's proposed if local does.New2026-11-12
Added
0.231.0Branch and While Loop can bind their condition. Tick Bind the condition in the Inspector: the condition is kept in a local you name, and handed on as a pin to the True side or the loop's body, where it is not nil or false. It compiles to local admin = admins[id] and if admin then, which Luau runs today and which is what the proposed if local and while local mean. It can be const. Read anywhere else, the pin says where it exists.