summaryrefslogtreecommitdiff
path: root/opcodes/endif.xml
blob: e237bee4c24ce062eded6ca0faa306ff8ab0f4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<refentry id="endif">
<indexterm id="IndexEndif"><primary>endif</primary></indexterm>
  <refentryinfo><title>Instrument Control:Program Flow Control</title></refentryinfo>
  <refmeta>
    <refentrytitle>endif</refentrytitle>
  </refmeta>



  <refnamediv>
    <refname>endif</refname>
    <refpurpose>
      Closes a block of code that begins with an &quot;if...then&quot; statement.
          </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>