Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > table.contains


table.contains

The table.contains function determines if an array contains a particular value.

#!lua
table.contains(arr, value)

Parameters

arr is the array to test; value is the value being tested for.

Return Value

True if the array contains the value, false otherwise.

Clone this wiki locally