#elif constantexpression
This directive marks an optional clause of a conditional-compilation block defined by an #ifdef, #ifndef, or #if directive. The #elif directive carries out conditional compilation of the resource file by checking the specified constantexpression. If constantexpression is nonzero, #elif directs the Resource Compiler to continue processing statements up to the next #endif, #else, or #elif directive, then skip to the statement after #endif. If constantexpression is zero, #elif directs the compiler to skip to the next #endif, #else, or #elif directive. Any number of #elif directives can be used in a conditional block.
The constantexpression field specifies a defined name, an integer constant, or an expression consisting of names, integers, and arithmetical and relational operators.
The following demonstrates the correct usage of the #elif statement:
#if Version<3
errbox BITMAP errbox.bmp
#elif Version<7
errbox BITMAP userbox.bmp
#endif