<doc>
  <legacy_id>1812</legacy_id>
  <name>then</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
  </classification>
  <references>
    <keyword tag="else">else Keyword</keyword>
    <keyword tag="end if">end if Keyword</keyword>
    <control_st tag="if">if Control Structure</control_st>
  </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>Used in an <control_st tag="if">if</control_st> <glossary tag="control structure">control structure</glossary> to separate the condition from the <glossary tag="statement">statements</glossary> that are <glossary tag="execute">executed</glossary> if the condition is true.</summary>
  <examples>
    <example>if a is true then beep</example>
  </examples>
  <description>
    <p>Use the <b>then</b> <glossary tag="keyword">keyword</glossary> before the <glossary tag="statement">statements</glossary> you want to <glossary tag="execute">execute</glossary> if a condition is true.</p><p/><p><b>Comments:</b></p><p>If you want to execute a single statement, place the <b>then</b> <glossary tag="keyword">keyword</glossary> before the <glossary tag="statement">statement</glossary> on the same line, as in these examples:</p><p/><p><code>  if 1+1 = 2 then doSomethingTrite</code></p><p/><p><code/>  if someConditionObtains()</p><p><code>  then performAnAction</code></p><p/><p>If you want to execute multiple statements, place the <b>then</b> <glossary tag="keyword">keyword</glossary> on the line before the list of <glossary tag="statement">statements</glossary>, as in this example:</p><p/><p><code>  if the backgroundColor of this stack is white then</code></p><p><code>    doFirstAction</code></p><p><code>    doAnotherAction</code></p><p><code>  end if</code></p>
  </description>
</doc>