Function within dzVents script?
Posted: Saturday 16 May 2020 15:40
Hi
I have a dzVents script that performs the same tasks 2 or 3 times depending on whether it was triggered by a timer or by one of a number of devices.
Is it possible to define a function within that script which I can call repeatedly for each case?
I know you can create global "helper" functions, but I'd prefer to keep it within the one script file.
Thanks
I have a dzVents script that performs the same tasks 2 or 3 times depending on whether it was triggered by a timer or by one of a number of devices.
Is it possible to define a function within that script which I can call repeatedly for each case?
I know you can create global "helper" functions, but I'd prefer to keep it within the one script file.
Thanks