#elif

InstallShield 2019 » InstallScript Language Reference

The #elif compile-time statement is similar in function to the elseif run-time statement. It combines the #if and #else statements, allowing you to specify another condition. For example:

#if (A = 1)

    // compile if A equals 1

    . . .

#elif (A = 2)

    // compile if A equals 2

    . . .

#elif (B = 3)

    // compile if B equals 3

    . . .

#else

    // if none of the #elif conditions are true, compile

    // the following portion

    . . .

#endif

Note • When using #elif, end the section with only one #endif.