scope of value1, value2, etc. and condition1, condition2,etc  [SOLVED]

Questions about MultiCharts and user contributed studies.
kernel
Posts: 91
Joined: 19 Feb 2013
Has thanked: 21 times
Been thanked: 4 times

scope of value1, value2, etc. and condition1, condition2,etc

Postby kernel » 15 Mar 2015

What's the scope of these predefined variables? file? global?

User avatar
JoshM
Posts: 2100
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1526 times
Been thanked: 1507 times
Contact:

Re: scope of value1, value2, etc. and condition1, condition2  [SOLVED]

Postby JoshM » 15 Mar 2015

What's the scope of these predefined variables? file? global?
File. All PowerLanguage variables (predefined or user-defined), arrays, and constants have a scope that encompasses the whole script file.

Only the global "variables" (which are actually functions with names as `GV*`) have a global scope.


Return to “MultiCharts”