Logic Machine Forum
Multiple loops - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Multiple loops (/showthread.php?tid=1710)



Multiple loops - Jørn - 09.11.2018

Is it possible to run multiple loops simultaneously`?
Code:
for i = 1, 10, 2 do
 dosomething()
end



RE: Multiple loops - Erwin van der Zwart - 10.11.2018

Hi,

Scripts are fall through so a single script content/commands will be executed in sequence.

Just curious: Why do you need this?

BR,

Erwin


RE: Multiple loops - Jørn - 10.11.2018

Okay, then i might just go with a resident script for this task. The goal was to dim down multiple sets of lighting groups with only one event script, all starting with their current seperate status values.


RE: Multiple loops - Erwin van der Zwart - 10.11.2018

Hi,

That won’t change it, you should create multiple scripts with your loops and trigger them with the same TAG then they will run at the same time.

BR,

Erwin


RE: Multiple loops - Jørn - 11.11.2018

I know it won't change the function of the loop, so it would be a different script. But of course, i did not think of running multiple event scripts.
Thanks Erwin.