switches([first[, last]])
Last updated
Was this helpful?
This is an iterator function over switch positions.
for switchIndex, switchName in switches() do ...
will iterate over all available switch positions.
first: the first switch index. If nil or omitted, the first available switch is used.
last: the last switch index. If nil or omitted, the last available switch is used.
Current Introduced in 2.6
Last updated
Was this helpful?
Was this helpful?