Posted 04 October 2014 - 08:05 PM
Hey guys,
how do i search for a given string pattern, for example "red", that will output all table-values that have the "red" in it like f.e. "Redstone", "Red Carpet", "Red Glass Pane" etc., but it also has to come up with f.e. "Powered Rail" and "Wired Modem". Think of a search function like in the Minecraft Inventory search, where you type in letters and every item with the string appears, giving less items the more accurate the search string gets.
How do i compare my table values for a given string pattern when my table would looks as follows, just for imagination, not be seen for a real code example
item[1].name = "Redstone"
item[2[.name = "Stone"
item[3].name = "Powered Rail"
etc.
etc.
Thx in advance…
how do i search for a given string pattern, for example "red", that will output all table-values that have the "red" in it like f.e. "Redstone", "Red Carpet", "Red Glass Pane" etc., but it also has to come up with f.e. "Powered Rail" and "Wired Modem". Think of a search function like in the Minecraft Inventory search, where you type in letters and every item with the string appears, giving less items the more accurate the search string gets.
How do i compare my table values for a given string pattern when my table would looks as follows, just for imagination, not be seen for a real code example
item[1].name = "Redstone"
item[2[.name = "Stone"
item[3].name = "Powered Rail"
etc.
etc.
Thx in advance…