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.

Weird behaviour with nested tables and log
#1
I am going crazy....

Working on a scheduled script and running it manually to check it.

The code below neither print AAAAAAAAAA nor BBBBBBBBBBBB.
However, if I comment out line 19 (log('DDDDDDDDDDD')), everything is printed out fine.

What am I missing?
Dodgy

Thanks in advance for any good input

Rgds
Christian

CODE:
----------

log('AAAAAAAAAAAAAAAAAAAAAAAAAAAA')

tPresenceCheck = {
  {'Area1', 10 , '0/200/0' , {'21/4/19','24/4/19'}},
  {'Area2', 15 , '5/200/0' , {'21/4/19','24/4/19','25/4/9'}}
}

log('BBBBBBBBBBBBBBBBBBBBBBBBBB')

log(tPresenceCheck)
log(#tPresenceCheck)

for i=1,#tPresenceCheck do
  log('CCCCCCCCCCCCCCCCCCCCCC')
  tCurr = tPresenceCheck[i]
  log(tCurr)
  sArea = tCurr[1]
  log(sArea)
  log('DDDDDDDDDDDDDDDD')

end
Reply


Messages In This Thread
Weird behaviour with nested tables and log - by mjaanes - 30.12.2019, 08:29

Forum Jump: