Page 1 of 1
Position of the local idxXYZ lines
Posted: Sunday 24 December 2017 19:09
by McMelloW
DannyBloe
Does the lines 'local idxXYZ = 123' have to be at the start of script or can they put also anywhere else in the dzVents scripts?
Re: Position of the local idxXYZ lines
Posted: Monday 25 December 2017 13:53
by BakSeeDaa
McMelloW wrote: Sunday 24 December 2017 19:09
DannyBloe
Does the lines
'local idxXYZ = 123' have to be at the start of script or can they put also anywhere else in the dzVents scripts?
Unlike global variables, local variables have their scope limited to the block where they are declared. So in short, the place in the script where you declare a local variable is important and will certainly affect the way how a scripts works. The question was recently answered
here. As for the previous post, nor this question is about dzVents but LUA.

Re: Position of the local idxXYZ lines
Posted: Tuesday 26 December 2017 15:17
by McMelloW
Thanks for the reply. I will study this
link