Logic Machine Forum
event script to run only once - 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: event script to run only once (/showthread.php?tid=3807)



event script to run only once - arivera - 13.01.2022

good afternoon, 

I would like to know if it is possible for an event script to be executed only once.

Example of the change of a temperature that performs an action but only once.

Thanks


RE: event script to run only once - FatMax - 13.01.2022

Yes, just finish the script with:

script.disable(_SCRIPTNAME)