Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...