Thx @waaren,
"But a key,value type of table does not have a fixed order in Lua"
This (key,value) is what i am using currently. So the order is not guaranteed.... oeps.
I will study the examples in your answer en redesign my script.
Thanks for pointing me in the right direction,
Lume
Search found 2 matches
- Monday 26 October 2020 11:40
- Forum: dzVents
- Topic: Reversed option in for .. in pairs ...
- Replies: 2
- Views: 301
- Sunday 25 October 2020 15:42
- Forum: dzVents
- Topic: Reversed option in for .. in pairs ...
- Replies: 2
- Views: 301
Reversed option in for .. in pairs ...
Hello dzVents users, I am working on a dzvents script to switchon/switchoff devices depending on the amount of power (watt) that is flowing in or out the grid. Switching off should be done in reversed order than switching on... Switching on is done with: for device,power in pairs(devices) .... To ...