conditional compile else?

BlitzMax Forums/BlitzMax Programming/conditional compile else?

Const PLATFORM = "Win32"

If PLATFORM = "Win32"
...
End if

That should work? AFAIK, it will only compile if the parts of the if statement that evaluate to true.

(And all variations)

Normally, you want to call different functions and import different libraries etc on different platforms, and ? is a preprocessor directive so anything thrown out the compiler will never see. Blocks of code wrapped in If <0> will still be parsed. ? will allow you to import different source files depending on the platform. If <Const> will not.