It should **not** work because the exclamation point "!" is in the wrong place!
Before:
if(is(!DEMO))
{
quit();
}
After:
if(!is(DEMO))
{
quit();
}
Here's a better code sample:
void run(){
if(is(DEMO)){
printf("\nDEMO flag is ON");
}
else{
printf("\nDEMO flag is OFF");
}
quit("#Done.");
}
Also, the description of DEMO is:
A demo account is selected through the [Account] scrollbox.
It does not care what mode you are in.