Garry's Mod Wiki

table.RemoveByValue

any table.RemoveByValue( table tbl, any val )

Description

Removes the first instance of a given value from the specified table with table.remove, then returns the key that the value was found at.

Arguments

1 table tbl
The table that will be searched.
2 any val
The value to find within the table.

Returns

1 any
The key at which the value was found, or false if the value was not found.

Page Links


Special Pages


Wikis

?

Render Time: 47ms

DB GetPage 6
Generate Html 10
SaveChanges (1) 9
Render Body 0
Render Sidebar 18