Posted 19 March 2020 - 11:30 AM
it amuses me that I'm the only one asking for help here.
On to the point, how do I filter a table of contents efficiently?
I have a list of peripherals attached in a table and I have potentially hundreds of peripherals on the network, however, all are not equal.
some are disk drives others are monitors, but I have a table with the peripherals that I need access to, and it looks a lot like this;
so my question is; how do I determine that periph[item] equals list[any]?
thanks in advance.
with regards,
-qwerty
On to the point, how do I filter a table of contents efficiently?
I have a list of peripherals attached in a table and I have potentially hundreds of peripherals on the network, however, all are not equal.
some are disk drives others are monitors, but I have a table with the peripherals that I need access to, and it looks a lot like this;
list = {
"immersiveengineering:storage_crate",
"minecraft:chest",
"thermalexpansion:storage_cache"
}
and here's a table that has the peripherals attached;
periph = {
"right",
"top",
"immersiveengineering:storage_crate_1",
"minecraft:chest_3"
}
so my question is; how do I determine that periph[item] equals list[any]?
thanks in advance.
with regards,
-qwerty
Edited on 19 March 2020 - 11:43 AM