e75d952016-11-14Pontus Östlund <!doctype html>
286efd2012-03-24Henrik Grubbström (Grubba) <html> <head>
e75d952016-11-14Pontus Östlund  <meta content="width=device-width, initial-scale=1" name="viewport"> <meta charset="utf-8"> <title>#elseif - Pike Reference Manual</title> <!-- 221--> <link rel='stylesheet' href='../../style.css'> <script src='../../site.js'></script> <script src='../../constants.js'></script>
286efd2012-03-24Henrik Grubbström (Grubba)  <style type='text/css'> svg line { stroke:#343434; stroke-width:2; } svg text { fill:#343434; } svg a { fill:#0768b2; text-decoration: underline; } </style> </head>
e75d952016-11-14Pontus Östlund  <body>
286efd2012-03-24Henrik Grubbström (Grubba)  <header>
e75d952016-11-14Pontus Östlund  <div class="header"> <div id="version"><strong data-id="version"></strong></div> <div id="burger">&#9776;</div><!-- Hamburger icon --> <h1> <a href="http://pike.lysator.liu.se/" class="logo"> <span>Pike programming language</span> </a> </h1>
286efd2012-03-24Henrik Grubbström (Grubba)  </div> </header>
e75d952016-11-14Pontus Östlund  <div id="page">
286efd2012-03-24Henrik Grubbström (Grubba)  <div class="navbar">
e75d952016-11-14Pontus Östlund  <nav> <div class="inner" id="navbar"> <a href='../../index.html'><b class='top head'>Top</b></a>
286efd2012-03-24Henrik Grubbström (Grubba) <a href='../../ex/cpp_3A_3A.html'><b class='head'>cpp::</b></a> <script></script> <noscript> <div class='sidebar'> <a href='../../ex/cpp_3A_3A/index.html'><b>Symbol index</b></a><br /> </div> </noscript>
e75d952016-11-14Pontus Östlund  </div> </nav>
286efd2012-03-24Henrik Grubbström (Grubba)  </div>
e75d952016-11-14Pontus Östlund  <div class="content"> <div class="navbox"> <nav> <div class="sidebar"> <a href="../../ex/cpp_3A_3A/_23else.html" class="prev"><span>&#10148;</span> #else</a> <a href="../../ex/cpp_3A_3A/_23endif.html" class="next">#endif <span>&#10148;</span></a> </div> </nav> </div> <div class="contentbox"> <article> <h1>Directive #elseif</h1>
286efd2012-03-24Henrik Grubbström (Grubba)  <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Directive</span> <span class='homogen--name'><b>#elseif</b></span> </dt> <dd><p><code class='directive'>#elif</code><br> <code class='directive'>#elseif</code></p></dd> <dt class='head--doc'>Description</dt> <dd class='body--doc'><p>These work as a combined <a class='ms reference' href='../cpp_3A_3A.html'>#else</a> and <a class='ms reference' href='../cpp_3A_3A.html'>#if</a> without adding an extra level of nesting.</p> </dd> <dt class='head--doc'>Example</dt> <dd class='example'><pre><p>The following two are equvivalent:</p> <pre><code>#ifdef A // Code for A. #else #ifdef B // Code for B. #else #ifdef C // Code for C. #else // Code for D. #endif #endif #endif</code></pre><p>And</p> <pre><code>#ifdef A // Code for A. #elif defined(B) // Code for B. #elseif defined(C) // Code for C. #else // Code for D. #endif</code></pre> </pre></dd> <dt class='head--doc'>See also</dt> <dd class='body--doc'><p><a class='ms reference' href='../cpp_3A_3A.html'>#if</a>, <a class='ms reference' href='../cpp_3A_3A.html'>#ifdef</a>, <a class='ms reference' href='../cpp_3A_3A.html'>#else</a>, <a class='ms reference' href='../cpp_3A_3A/defined.html'>defined()</a>, <a class='ms reference' href='../cpp_3A_3A/constant.html'>constant()</a></p> </dd></dl>
e75d952016-11-14Pontus Östlund  </article> </div>
286efd2012-03-24Henrik Grubbström (Grubba)  </div> </div>
e75d952016-11-14Pontus Östlund  <footer> <div id="build-date">Extracted from <strong data-id="version"></strong> as of <strong data-id="date" data-timestamp=""></strong>.</div> </footer> <script>PikeDoc.current = {"link":"ex/cpp_3A_3A/_23elseif.html","name":"#elseif"};</script>
286efd2012-03-24Henrik Grubbström (Grubba) <script src='../../ex/cpp_3A_3A/index.js'></script> <script src='../../ex/cpp_3A_3A/load_index.js'></script>
e75d952016-11-14Pontus Östlund  <script> // Tell PikeDoc that next actions are from loaded scripts PikeDoc.isInline = false; </script> </body>
286efd2012-03-24Henrik Grubbström (Grubba) </html>