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

  <refnamediv>
    <refname>cngoto</refname>
    <refpurpose>
      Transfers control on every pass when a condition is not true.
      <indexterm id="IndexCngoto"><primary>cngoto</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Transfers control on every pass when the condition is <emphasis>not</emphasis> true.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>cngoto</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 cngoto opcode. It uses the files <ulink url="examples/cngoto.orc"><citetitle>cngoto.orc</citetitle></ulink> and <ulink url="examples/cngoto.sco"><citetitle>cngoto.sco</citetitle></ulink>.

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

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

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

      Its output should include lines like:
      <screen>
kval = 0.000000, kfreq = 880.000000
kval = 0.999732, kfreq = 880.000000
kval = 1.999639, kfreq = 440.000000
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="cggoto"><citetitle>cggoto</citetitle></link>,
      <link linkend="cigoto"><citetitle>cigoto</citetitle></link>,
      <link linkend="ckgoto"><citetitle>ckgoto</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="tigoto"><citetitle>tigoto</citetitle></link>,
      <link linkend="timout"><citetitle>timout</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
    <para>New in version 4.21</para>
  </refsect1>
</refentry>
