🪛
MTools
  • 📷Description
  • ✏️Strings
  • 🔢Numbers
  • 📂Table
  • 📶Network
  • 🍪Client
  • 🗃️FileSystem
  • 🍭Render
  • 🧬Animation
  • 🧸AntiAims
  • ⚙️Threading
  • 💻Panorama
Powered by GitBook
On this page
  • GetAUIList
  • Find

Table

Auxiliary functions for Table types.

PreviousNumbersNextNetwork

Last updated 2 years ago

GetAUIList

MTools.Table.GetAUIList(value);

Name
Type
Description

value

table

Array with AUI

Allows you to get a list of variables in the child element. This function requires a module 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);

Name
Type
Description

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.

📂
aui [EnQ]