I have to admit, I'm having a hard time using this the way I had hoped to... Because it's a variable instead of a preprocessor directive means that it can only change code at run time.
If I have a diskin statement I use for testing, wrapping it in an "if conditional" doesn't help when the effect is exported... it will still error saying the diskin file wasn't found. It has to be wrapped with a #ifdef, that way if it's not defined, it's like the diskin code does't even exist.
I had also tried doing something like this:
if chnget("IS_A_PLUGIN")==1 then
But you can't wrap an #undef if an if conditional either, it will always be applied regardless since it's parsed out before the code is evaluated...
Any suggestions for how to do this?