This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Simple question about boolean operators with #ifdef
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 13, 2008
12:52 PM
Simple question about boolean operators with #ifdef
The InstallScript reference manual indicates that boolean operators work with #ifdef statements. However when I use an OR (||) operator with an #ifdef statement, my compiler only recognizes the first argument. Here's my syntax:
#ifdef FULL_RELEASE || CD_RELEASE
#endif
In this situation, the compiler only executes the code if FULL_RELEASE is defined. Am I using the right syntax?
Thanks!
#ifdef FULL_RELEASE || CD_RELEASE
#endif
In this situation, the compiler only executes the code if FULL_RELEASE is defined. Am I using the right syntax?
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 13, 2008
02:08 PM
I think that, like in C or C++, the InstallScript #ifdef can only take a single name. To check multiple, you'll need to nest #ifdef or #ifndef clauses.