list/Contains

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=Contains |Parent=list |Description=Returns true if the list contains the value. (as a value - not a key) |Realm=Shared |IsClass=No }} {{Arg |type=string |name=lis...")
 
m (Also menu state)
Line 3: Line 3:
 
|Parent=list
 
|Parent=list
 
|Description=Returns true if the list contains the value. (as a value - not a key)
 
|Description=Returns true if the list contains the value. (as a value - not a key)
|Realm=Shared
+
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
 
}}
 
}}

Revision as of 03:24, 24 July 2016

 list.Contains( )

Contents

Description

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

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