Training
Module
Test conditions with if/else expressions in Rust - Training
Explore Rust compound data types like arrays, vectors, and hash maps. Discover how to use if/else statements to test conditions.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The #else directive marks an optional clause of a conditional-compilation block defined by a #ifdef, #ifndef, or #if directive. The #else directive must be the last directive before the #endif directive.
#else
This directive has no parameters.
This example compiles the second BITMAP statement only if DEBUG is not defined:
#ifdef DEBUG
BITMAP 1 errbox.bmp
#else
BITMAP 1 userbox.bmp
#endif
Training
Module
Test conditions with if/else expressions in Rust - Training
Explore Rust compound data types like arrays, vectors, and hash maps. Discover how to use if/else statements to test conditions.