https://wiki.bennugd.org/index.php?title=Local_variable&feed=atom&action=historyLocal variable - Revision history2024-03-29T12:22:49ZRevision history for this page on the wikiMediaWiki 1.36.2https://wiki.bennugd.org/index.php?title=Local_variable&diff=7430&oldid=prevSandman at 13:14, 3 September 20092009-09-03T13:14:20Z<p></p>
<p><b>New page</b></p><div>[[Category:variablecategories]]<br />
[[category:general]]<br />
<br />
== Definition ==<br />
A local variable is a [[variable]] that is specific to a [[process]] in the same way as a [[public variable]]: they are both accessible from other places in the code than the [[process]]/[[function]] itself. However, unlike a public variable, when a local variable is declared, ''all'' following processes will have that local. <br />
<br />
There's also a number of [[predefined]] [[local variables]].<br />
<br />
To start the declaration of local variables, use [[Local]].<br />
<br />
== Example ==<br />
<pre><br />
Local<br />
// insert local variables that you can use here<br />
End<br />
<br />
Process Main()<br />
Begin<br />
// main code<br />
End<br />
<br />
</pre><br />
Used in example: [[Process]], [[Local]], [[Begin]], [[End]]</div>Sandman