<doc>
  <legacy_id>3002</legacy_id>
  <name>preserveVariables</name>
  <type>property</type>
  <syntax>
    <example>set the preserveVariables to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
    <synonym>preserveVars</synonym>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
    <category>Values &amp; Properties</category>
  </classification>
  <references>
    <command tag="local">local Command</command>
  </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>Specifies that the values of script-local variables should be preserved across recompilations of the script.</summary>
  <examples>
    <example>set the preserveVariables to true</example>
  </examples>
  <description>
    <p>Set the <b>preserveVariables</b> to true to make LiveCode remember values of script-local variables across recompilation of the script. Script recompilation occurs when an object's <b>script</b> property is set. This property affects only variables at script scope, that do not have an initializer.</p><p/><p><b>Value:</b></p><p>The <b>preserveVariables</b> is true or false.</p><p/><p>By default, the <b>preserveVariables</b> is set to false.</p><p/><p><b>Comments:</b></p><p>The <b>preserveVariables</b> property is provided as a background compatibility aid. It should not, in general, be used in user scripts as the IDE automatically handles preservation of variables via the <b>Variable Preservation</b> option in the preferences and Script Editor <i>Script</i> menu.</p>
  </description>
</doc>