table.RemoveByValue

From Garry's Mod
Jump to: navigation, search
 table.RemoveByValue( )

Contents

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

table tbl

The table that will be searched.

Arguments

any val

The value to find within the table.

Returns

any

The key at which the value was found, or false if the value was not found.
Personal tools
Navigation