📂Table

Auxiliary functions for Table types.

GetAUIList

MTools.Table.GetAUIList(value);

NameTypeDescription

value

table

Array with AUI

Allows you to get a list of variables in the child element. This function requires a module aui [EnQ] Example usage:

local Test = aui.switch({"A", "B"}, "C", false, "", function(group)
    return {
        Test2 = aui.switch({"D", "E"}, "F", false)
    };
end);
print(MTools.Table.GetAUIList(Test[1])[1]);
-- Will return the word Test2.

Find

MTools.Table.Find(value, search);

NameTypeDescription

value

table

The lua array

search

string

The word you are looking for

Allows you to find the Index element. Example usage:

local arr = {"Test", "Test2", "Test3"};
print(MTools.Table.Find(arr, "Test2"));
-- Returns the number 2.

Last updated