Homeworld 2 : Functionnext
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
next(<tTable>, [<Index>])

Description
"Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. next returns the next index of the table and the value associated with the index. When called with nil as its second argument, next returns the first index of the table and its associated value. When called with the last index, or with nil in an empty table, next returns nil. If the second argument is absent, then it is interpreted as nil.
Lua has no declaration of fields; semantically, there is no difference between a field not present in a table or a field with value nil. Therefore, next only considers fields with non-nil values. The order in which the indices are enumerated is not specified, even for numeric indices (to traverse a table in numeric order, use a numerical for or the function foreachi).

The behavior of next is undefined if you change the table during the traversal."

Example

Arguments
<tTable>: the table to traverse.
<Index>: the index of the table element immediately prior to the table element to return. (may be a string or number; optional)

Related Functions
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
FunctionNISSetSkippable.html
100%
--:--
496 KB
-.--
FunctionNISSetSkippable.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISSetSkippable.html
Status:
496 KB / 496 KB ( -.-- )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:40:54
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
756 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionNISSeekForward.html
100%
--:--
496 KB
-.--
FunctionNISSeekForward.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISSeekForward.html
Status:
496 KB / 496 KB ( -.-- )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:41:30
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
468 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionNISSeek.html
100%
00:00
495 KB
2.49 MB/s
FunctionNISSeek.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISSeek.html
Status:
495 KB / 495 KB ( 2.49 MB/s )
File Size:
495 KB
Virus scan:
Time Start:
2019.08.22 - 00:41:41
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.75 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionNISPlayFromGroup.html
100%
00:00
496 KB
1.33 MB/s
FunctionNISPlayFromGroup.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISPlayFromGroup.html
Status:
496 KB / 496 KB ( 1.33 MB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:42:47
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.28 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionNISPlay.html
100%
00:00
496 KB
2.38 MB/s
FunctionNISPlay.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISPlay.html
Status:
496 KB / 496 KB ( 2.38 MB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:42:57
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.22 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionNISLoad.html
100%
00:00
496 KB
2.50 MB/s
FunctionNISLoad.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionNISLoad.html
Status:
496 KB / 496 KB ( 2.50 MB/s )
File Size:
496 KB
Virus scan:
Time Start:
2019.08.22 - 00:43:08
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.32 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop