#if and #endif

What is the use of #if and #endif directives. In what way it differs from if() { }
Thanks

More questions in this forum