Hi,
I have a gateway timer script that has two functions and the second function calls the first function.
I cannot tell why this is not working. Any help would be greatly appreciated.
Using a very simple example to help the discussion
Thank you.
Traceback (most recent call last):
File "<TimerScript:Test/Nested Functional Test @8,800ms >", line 11, in <module>
File "<TimerScript:Test/Nested Functional Test @8,800ms >", line 7, in add_2
NameError: global name 'add_1' is not defined
Is it just due to scoping issue or are there other problems as well ? I have quite a few function definitions in gateway events and curious if it's worth changing them.
I'm having trouble finding documentation for script project library for the latest ignition. Any chance you have a link I could see to understand how it works ?
Thanks.