Request : IncBin inside constant-based If statemen

BlitzMax Forums/BlitzMax Programming/Request : IncBin inside constant-based If statemen

Hotcakes(Posted 2006) [#1]
Const variable=1
If variable
  IncBin "stuff.thing"
EndIf


I know it's not a bug, but there's no other obvious place to request this... could it ever happen?


H&K(Posted 2006) [#2]
Would an exectable solution be to "incudle" the "Stuff.Thing"
http://www.blitzbasic.com/Community/posts.php?topic=59760#666272


Curtastic(Posted 2006) [#3]
I think its possible. I requested it before.

For some reason in max the Print "hi" would get included in the EXE, but it blitz3d it intellegintly doesn't compile that code.
Const variable=0
If variable
 Print "hi"
EndIf