conditional compile else?

BlitzMax Forums/BlitzMax Programming/conditional compile else?

It isn't added to the EXE (AFAIK), but it IS parsed. Try to compile this:

If 0 Then (*&%*$#&%(#^#$%#$%


Further, Import must appear at the top of a source file, so:

If Win32

	Import "Win32Code.bmx"

ElseIf Linux
	
	Import "LinuxCode.bmx"

Else
	
	Import "MacOSCode.bmx"

Endif


Will not work. You can use Include in this way, though.