cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cbarlow
Level 7

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!
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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.
0 Kudos