Logic Machine Forum
Scripting variable - 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: Scripting variable (/showthread.php?tid=2752)

Scripting variable - Frank68 - 27.07.2020


the variable used inside the script is GLOBAL ?

is possible use ALM1 in script 1 and ALM1 in script 2

when i try to make some sum I have this error  
attempt to perform arithmetic on global 'ALM1' (a nil value)

But I make an addiction ALM1+ALM2 , if possible I have ALM1=0 and ALM2 =0

Thank's in adavantage

RE: Scripting variable - Daniel. - 27.07.2020

Variables in script are local. To use values between scripts you can use object or save data to storage.