Hi Brad
The
conditionals you mentioned are a compile-time feature - if you look at the source code output (in JS, PHP, AS3 source etc) you'll notice that entire lines etc. are missing - the "#if mydebug" stuff is all decided by the Haxe compiler, and only the defined options make it in to the source code.
So there's no way to do these "at runtime". What Greg Dove mentioned is doing it inside a macro, which again is at compile-time. (In case you're not familiar with macros, have a read
here). Now macros use the neko API, which is why the haxe.macro.* classes say they're only available on neko. In reality, they're only available in a macro, but they work in macros no matter if you're targetting Flash or Neko or JS or anything.