Skip to content

table.contains

starkos edited this page Apr 10, 2021 · 4 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Determines if an array contains a particular value.

table.contains(arr, value)

Parameters

arr is a table containing indexed elements. value is the value for which to search.

Return Value

True if the array contains the value, false otherwise.

Availability

Premake 4.4 or later.

Clone this wiki locally