preprocessor command help

Previous topic - Next topic

retrotech

Code (glbasic) Select
?DEFINE compile_mode_testing TRUE

?IF compile_mode_testing = FALSE

player_lives = 3

?ELSE

player_lives = 99

?ENDIF


Please help.  My attempt at using preprocessor commands is giving me this precompiling error, "syntax error : ... true)=false".  What is the correct way to do this?
"I am not young enough to know everything." - Oscar Wilde

kanonet

I think it should be
Code (glbasic) Select
?DEFINE compile_mode_testing TRUE

?IF DEFINED(compile_mode_testing)

player_lives = 99

?ELSE

player_lives = 3

?ENDIF


But its not tested. Just check the helpfile.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

You can also use ?IFDEF