If and Const

BlitzMax Forums/BlitzMax Beginners Area/If and Const

H&K(Posted 2007) [#1]
Const Flag:int = False
If Flag
    stuff
endif
Does the stuff in the If statment get compiled if Flag is False?
Im assuming it does, is so do we have?
Const Flag:int = False
? Flag
    stuff
?



Dreamora(Posted 2007) [#2]
Right now, there is no ifdef and the like.
So you can not do anything unless you modify BMK and add ?ifdef ?ifndef ?else ?endif


funnily, the old blitz languages optimize if const and do not compile the unused part into the executable.