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

  <refnamediv>
    <refname>elseif</refname>
    <refpurpose>
      Defines another &quot;if...then&quot; condition when a &quot;if...then&quot; condition is false.
      <indexterm id="IndexElseif"><primary>elseif</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Defines another &quot;if...then&quot; condition when a &quot;if...then&quot; condition is false.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>elseif</command> xa R xb <command>then</command></synopsis>

    <para>
      where <emphasis>label</emphasis> is in the same instrument block and is not an expression, and where <emphasis>R</emphasis> is one of the Relational operators (<emphasis>&lt;</emphasis>, <emphasis>=</emphasis>, <emphasis>&lt;=</emphasis>, <emphasis>==</emphasis>, <emphasis>!=</emphasis>) (and <emphasis>=</emphasis> for convenience, see also under <link linkend="ControlConditional"><citetitle>Conditional Values</citetitle></link>).
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>elseif</emphasis> is used inside of a block of code between the <link linkend="if"><citetitle>&quot;if...then&quot;</citetitle></link> and <link linkend="endif"><citetitle>endif</citetitle></link> opcodes. When a &quot;if...then&quot; condition is false, it defines another &quot;if...then&quot; condition to be met. Any number of <emphasis>elseif</emphasis> statements are allowed.
    </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="else"><citetitle>else</citetitle></link>,
      <link linkend="endif"><citetitle>endif</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>
