Compiler commands - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Compiler commands (/showthread.php?tid=1492) |
Compiler commands - eoredson - 02-21-2023 Hi, I have looked through the Wiki and commands and _commands but nowhere have I found a description for the $ compiler commands.. I am aware of $Dynamic, $Static and $Include compiler directives, but what I need to know are the $IF keywords and variables.. Thanks, Erik. RE: Compiler commands - mnrvovrfc - 02-21-2023 https://qb64phoenix.com/qb64wiki/index.php/$IF A fake variable could be defined with $LET: Code: (Select All) $LET SOMETHN=5 Note that you cannot leave out the "$LET", especially the dollar sign if you expect a compiler directive. Otherwise could check for the OS the program is being compiled on: Code: (Select All) $IF WIN THEN RE: Compiler commands - RhoSigma - 02-21-2023 https://qb64phoenix.com/qb64wiki/index.php/Keyword_Reference_-_Alphabetical#I_(QB64) https://qb64phoenix.com/qb64wiki/index.php/Metacommand#OB64_Precompiler_Commands RE: Compiler commands - eoredson - 02-21-2023 Thanks, I have the wrong older Wiki url Try this: Code: (Select All) $Let SOMETHN = 5 |