Garry's Mod Wiki

Revision Difference

list.HasEntry#511452

<function name="HasEntry" parent="list" type="libraryfunc">⤶ <description>⤶ Returns true if the list contains the given key.⤶ ⤶ For a function that looks for values and not keys see <page>list.Contains</page>.⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="list" type="string">List to search through</arg>⤶ <arg name="key" type="any">The key to test</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Returns true if the list contains the key, false otherwise</ret>⤶ </rets>⤶ </function>⤶ ⤶