Posted 18 December 2015 - 05:38 AM
Ok so I have been trying to make my life much easier by creating a list but I can't find if such a thing is possible (Though I remember doing it in the past)
I wrote most of the code ingame on a server so I will try my best to summarize it here
while true do
rednet.open("right")
event, sendId, message = os.pullEvent()
if senderId == "14" or senderId == "26" or senderId == "27" and message == ("Example") then
redstone.setOutput("left", false)
So my question is: Is it possible to create a list of all of those ID's so that I don't have to type " or senderId == "" " each time I want to add another sender ID to the statement.
So for example something like this
if senderId == {"14", "26", "27" and message == ("Example") then
Thanks
I wrote most of the code ingame on a server so I will try my best to summarize it here
while true do
rednet.open("right")
event, sendId, message = os.pullEvent()
if senderId == "14" or senderId == "26" or senderId == "27" and message == ("Example") then
redstone.setOutput("left", false)
So my question is: Is it possible to create a list of all of those ID's so that I don't have to type " or senderId == "" " each time I want to add another sender ID to the statement.
So for example something like this
if senderId == {"14", "26", "27" and message == ("Example") then
Thanks