list.Contains

From Garry's Mod
Jump to: navigation, search
 list.Contains( )

Contents

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

string list

List to search through

Arguments

any value

The value to test

Returns

boolean

Returns true if the list contains the value, false otherwise
Personal tools
Navigation