isMonthly() |
Top Previous Next |
isMonthly( [interval] )
Returns true if the interval passed is a monthly interval. If no interval is passed, the function uses the interval of the chart in which the script is running.
Parameters
Usage
var bBail = false; var bInit = false;
function main() {
if ( bBail==true ) { return; }
if ( bInit==false ) {
if ( isMonthly()==true ) { debugPrint( "Sorry. This script does not run in monthly charts.\n" ); bBail=true; return; }
bInit = true;
}
... ...
}
|