FindLuau✎
The first index in an array holding Value, from From on, or nil when none does.
Pending review
- the language itself, so it works in Roblox and in Lune
- pure — no execution pins, wire it anywhere
- names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals
Inputs
- Table:tablemust be wired
- Value:any=
nil - From:number=
1
Outputs
- result:number
What it compiles to
luau
print(table.find(value, nil))
Not reviewed yet