This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Question of table
#3
(16.05.2020, 14:43)Erwin van der Zwart Wrote: Hi,

There is a better way to do this:
Code:
mapping = {
  ['1/1/1'] = {feedback = '2/1/1'},
  ['1/1/2'] = {feedback = '2/1/2'},
  ['1/1/3'] = {feedback = '2/1/3'},
  ['1/1/4'] = {feedback = '2/1/4'},
  ['1/1/5'] = {feedback = '2/1/5'},
  ['1/1/6'] = {feedback = '2/1/6'},
  ['1/1/7'] = {feedback = '2/1/7'},
}

address_feedback = mapping[event.dst].feedback
BR,

Erwin
Thanks a lot. I will try. But if I use the table, can you tell me what should I write?
Reply


Messages In This Thread
Question of table - by 38348259 - 16.05.2020, 12:46
RE: Question of table - by 38348259 - 17.05.2020, 01:12
RE: Question of table - by admin - 17.05.2020, 07:39

Forum Jump: