Garry's Mod Wiki

list.Contains

list.Contains

boolean list.Contains( string list, any value )

Description

Returns true if the list contains the value. (as a value - not a key)

For a function that looks for a key and not a value see list.HasEntry.

Arguments

1 string list
List to search through
2 any value
The value to test

Returns

1 boolean
Returns true if the list contains the value, false otherwise

Special Pages


Wikis

?

Render Time: 61ms

DB GetPage 42
Generate Html 4
SaveChanges (1) 5
Render Body 0
Render Sidebar 6