<doc>
  <legacy_id>1740</legacy_id>
  <name>middle</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>mid</synonym>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
  </classification>
  <references>
    <keyword tag="ninth">ninth Keyword</keyword>
    <keyword tag="seventh">seventh Keyword</keyword>
    <keyword tag="home">home Keyword</keyword>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Designates the middle member of a set.</summary>
  <examples>
    <example>go to middle card <code><i>-- halfway through the stack</i></code></example>
    <example>put the middle char of myInput into keyVar</example>
    <example>select the middle line of field 22</example>
  </examples>
  <description>
    <p>Use the <b>middle</b> <glossary tag="keyword">keyword</glossary> in an <href tag="reference/object_reference.rev">object reference</href> or <glossary tag="chunk expression">chunk expression</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>middle</b> <glossary tag="keyword">keyword</glossary> can be used to specify any <glossary tag="object">object</glossary>. It can also be used in a <glossary tag="chunk expression">chunk expression</glossary> to designate the middle <glossary tag="chunk">chunk</glossary> of the specified type.</p><p/><p>If the set has an odd number of members, the <b>middle</b> <glossary tag="keyword">keyword</glossary> specifies the member halfway between beginning and end. For example,</p><p><code>  the middle char of "abc"</code></p><p>i<code>s </code>b.</p><p/><p>If the set has an even number of members, the <b>middle</b> <glossary tag="keyword">keyword</glossary> specifies the first member of the last half of the set. For example,</p><p><code>  the middle char of "abcd"</code></p><p>i<code>s </code>c.</p><p/><p>The word<code> the </code>is optional when using the <b>middle</b> <glossary tag="keyword">keyword</glossary>.</p><p/><p>A reference to the <b>middle</b> of a <keyword tag="string">string</keyword>, with no <glossary tag="chunk">chunk</glossary> type specified, yields the entire <keyword tag="string">string</keyword>.</p>
  </description>
</doc>