getGlobalValue() |
Top Previous Next |
getGlobalValue( varName )
This function retrieves the value of a global variable. Global variables are accessible to other scripts running in other charts.
Parameters
Usage
function main() { var myVar;
... ...
myVar = getGlobalValue( "myStatus" ); if ( myVar == 100 ) { setBarFgColor( Color.green, 0 ); } else if ( myVar == -100 ) { setBarFgColor( Color.red, 0 ); }
}
|