Check a variable once

 
Hello,

I have a variable in my Indicator, and I would like to check it each time MetaTrader is launching, after this first check, the variable must'nt be checked until the next start of MetaTrader.

Is there a way to make this ?

Thank you...
 
Then variable should be in experts/files/some.file or GlobalVariables (press F3). Or upper-left in Documentation
 
Thank you...

I did it, and sure it works, but are you sure it will call only once ? ( when MetaTrader launching or Indicator/EA starting )

Have a nice day...
 
bool boReaded[1];
int start
 {
  if ( !boReaded[0] ) { /* read parameter, confirm boReaded[0]=1; */ }
  /* option, if( !boReaded[0] ) return(0); */
  /* ... */
 }