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

    <refpurpose>
      Conditionally transfer control during the i-time pass.
      <indexterm id="IndexCigoto"><primary>cigoto</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      During the i-time pass only, unconditionally transfer control to the statement labeled by <emphasis>label</emphasis>.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>cigoto</command> condition, label</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>Examples</title>
    <para>
      Here is an example of the cigoto opcode. It uses the files <ulink url="examples/cigoto.orc"><citetitle>cigoto.orc</citetitle></ulink> and <ulink url="examples/cigoto.sco"><citetitle>cigoto.sco</citetitle></ulink>.

      <example>
        <title>Example of the cigoto opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/cigoto.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/cigoto.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include lines like:
      <screen>
instr 1:  iparam = 0.000
instr 1:  ifreq = 440.000
instr 1:  iparam = 1.000
instr 1:  ifreq = 880.000
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="cggoto"><citetitle>cggoto</citetitle></link>,
      <link linkend="ckgoto"><citetitle>ckgoto</citetitle></link>,
      <link linkend="cngoto"><citetitle>cngoto</citetitle></link>,
      <link linkend="goto"><citetitle>goto</citetitle></link>,
      <link linkend="if"><citetitle>if</citetitle></link>,
      <link linkend="kgoto"><citetitle>kgoto</citetitle></link>,
      <link linkend="rigoto"><citetitle>rigoto</citetitle></link>,
      <link linkend="tigoto"><citetitle>tigoto</citetitle></link>,
      <link linkend="timout"><citetitle>timout</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Added a note by Jim Aikin.</para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
