<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="endif">
  <refmeta>
    <refentrytitle>endif</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>endif</refname>
    <refpurpose>
      Closes a block of code that begins with an &quot;if...then&quot; statement.
      <indexterm id="IndexEndif"><primary>endif</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Closes a block of code that begins with an <link linkend="if"><citetitle>&quot;if...then&quot;</citetitle></link> statement.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>endif</command></synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      Any block of code that begins with an <link linkend="if"><citetitle>&quot;if...then&quot;</citetitle></link> statement must end with an <emphasis>endif</emphasis> statement.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      See the example for the <link linkend="if"><citetitle>if</citetitle></link> opcode.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="elseif"><citetitle>elseif</citetitle></link>,
      <link linkend="else"><citetitle>else</citetitle></link>,
      <link linkend="goto"><citetitle>goto</citetitle></link>,
      <link linkend="if"><citetitle>if</citetitle></link>,
      <link linkend="igoto"><citetitle>igoto</citetitle></link>,
      <link linkend="kgoto"><citetitle>kgoto</citetitle></link>,
      <link linkend="tigoto"><citetitle>tigoto</citetitle></link>,
      <link linkend="timout"><citetitle>timout</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>New in version 4.21</para>
  </refsect1>
</refentry>
