Logic Machine Forum
check severals of boolean values in script - 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: check severals of boolean values in script (/showthread.php?tid=3988)



check severals of boolean values in script - stigen - 11.04.2022

Hi!


I have 36 boolean values that i would like to check status on by using a resident script.

If one of these 36 is true, i would like to update a new object to true, otherwise update it to false.

Is there any easy way to do this in lua script, without writing if (value1 = true or value2 = true or value3 = true.........etc......etc...value36 = true)?

-S-


RE: check severals of boolean values in script - admin - 11.04.2022

Check these threads:
https://forum.logicmachine.net/showthread.php?tid=220&pid=961#pid961
https://forum.logicmachine.net/showthread.php?tid=291&pid=1518#pid1518