<doc>
  <legacy_id>2133</legacy_id>
  <name>in</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Text and Data Processing</category>
  </classification>
  <references>
    <keyword tag="of">of 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 <keyword tag="string">string</keyword> that contains a <glossary tag="chunk expression">chunk expression</glossary>.</summary>
  <examples>
    <example>repeat with x = 1 to the number of items in the hilitedLines of me</example>
  </examples>
  <description>
    <p>Use the <b>in</b> <glossary tag="keyword">keyword</glossary> as a synonym for the <keyword tag="of">of</keyword> <glossary tag="keyword">keyword</glossary> in <glossary tag="chunk expression">chunk expressions</glossary>.</p><p/><p><b>Comments:</b></p><p>When designating a part of a string, use the <b>in</b> <glossary tag="keyword">keyword</glossary> after the <glossary tag="chunk">chunk</glossary> type. For example, to specify the first <keyword tag="word">word</keyword> of a <keyword tag="string">string</keyword>, use an <glossary tag="expression">expression</glossary> like this:</p><p/><p><code>  word 1 in<i> strin</i></code>g</p><p/><p>In complex chunk expressions with multiple chunk types, use the <b>in</b> <glossary tag="keyword">keyword</glossary> after each <glossary tag="chunk">chunk</glossary> type. For example, to specify the last <keyword tag="character">character</keyword> of the second <keyword tag="line">line</keyword> of a <keyword tag="string">string</keyword>, use an <glossary tag="expression">expression</glossary> like this:</p><p/><p><code>  last char in line 2 i<i>n stri</i></code>ng</p><p/><p>When designating the number of chunks in a string, use the <b>in</b> <glossary tag="keyword">keyword</glossary> after the <glossary tag="chunk">chunk</glossary> type. For example, to get the number of <keyword tag="lines">lines</keyword> in a <keyword tag="string">string</keyword>, use an <glossary tag="expression">expression</glossary> like this:</p><p/><p><code>  the number of lines in<i> string</i></code></p>
  </description>
</doc>