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

    <refpurpose>
      Conditionally transfer control during the p-time passes.
      <indexterm id="IndexCkgoto"><primary>ckgoto</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>

    <para>
      During the p-time passes only, unconditionally transfer control to the statement labeled by <emphasis>label</emphasis>.
    </para>
  </refsect1>

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

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

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

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

      Its output should include lines like:
      <screen>
kval = 0.000000, kfreq = 440.000000
kval = 0.999732, kfreq = 440.000000
kval = 1.999639, kfreq = 880.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="cngoto"><citetitle>cngoto</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>Added a note by Jim Aikin.</para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
