<doc>
  <legacy_id>1355</legacy_id>
  <name>finally</name>
  <type>keyword</type>
  <syntax>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
  </classification>
  <references>
    <control_st tag="try">try Control Structure</control_st>
    <keyword tag="else">else 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>Used within a <control_st tag="try">try</control_st> <glossary tag="control structure">control structure</glossary> to contain <glossary tag="statement">statements</glossary> that are <glossary tag="execute">executed</glossary> whether or not there was an <glossary tag="error">error</glossary>.</summary>
  <examples>
    <example>finally</example>
  </examples>
  <description>
    <p>Use the <b>finally</b> <glossary tag="keyword">keyword</glossary> to designate one or more <glossary tag="statement">statements</glossary> that are to be <glossary tag="execute">executed</glossary> within a <control_st tag="try">try</control_st> <glossary tag="control structure">control structure</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>finally</b> <glossary tag="keyword">keyword</glossary> appears on a line by itself, and is followed by a list of <glossary tag="statement">statements</glossary>. The <glossary tag="statement">statements</glossary> in the <b>finally</b> section are <glossary tag="execute">executed</glossary> whether or not there was an <glossary tag="error">error</glossary> while <glossary tag="execute">executing</glossary> the <control_st tag="try">try</control_st> <glossary tag="control structure">control structure</glossary>.</p><p/><p>The <b>finally</b> section is always <glossary tag="execute">executed</glossary> even if the <control_st tag="try">try</control_st> <glossary tag="control structure">control structure</glossary> contains an <control_st tag="exit">exit</control_st> or <control_st tag="pass">pass</control_st> <glossary tag="statement">statement</glossary>, so it can be used for final cleanup actions such as deleting <glossary tag="variable">variables</glossary>.</p><p/><p>The <b>finally</b> section is optional in a <control_st tag="try">try</control_st> <glossary tag="control structure">control structure</glossary>.</p>
  </description>
</doc>