Garry's Mod Wiki

Revision Difference

list.Contains#511455

<function name="Contains" parent="list" type="libraryfunc">⤶ <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 <page>list.HasEntry</page>.⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="list" type="string">List to search through</arg>⤶ <arg name="value" type="any">The value to test</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Returns true if the list contains the value, false otherwise</ret>⤶ </rets>⤶ </function>⤶ ⤶