<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getelementofarray</id>
		<title>Getelementofarray - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getelementofarray"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getelementofarray&amp;action=history"/>
		<updated>2026-05-01T05:32:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getelementofarray&amp;diff=185&amp;oldid=prev</id>
		<title>Nameless2you: Created page with &quot;==Syntax== *'''getelementofarray'''(&lt;array variable&gt;, &lt;index&gt;);  ==Description== This command retrieves the value of the element of given array at given index. This is equival...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getelementofarray&amp;diff=185&amp;oldid=prev"/>
				<updated>2013-01-13T19:43:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;getelementofarray&amp;#039;&amp;#039;&amp;#039;(&amp;lt;array variable&amp;gt;, &amp;lt;index&amp;gt;);  ==Description== This command retrieves the value of the element of given array at given index. This is equival...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Syntax==&lt;br /&gt;
*'''getelementofarray'''(&amp;lt;array variable&amp;gt;, &amp;lt;index&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This command retrieves the value of the element of given array at given index. This is equivalent to using:&lt;br /&gt;
 array[index]&lt;br /&gt;
The reason for this is, that this short form is internally converted into a call to getelementofarray, when the script is loaded.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 [[setarray]] @array[0], 1, 2, 3;&lt;br /&gt;
 [[set]] @varl, getelementofarray(@array, 2);  // retrieves 3&lt;br /&gt;
 set @vars, @array[2];  // retrieves 3 as well&lt;br /&gt;
 &lt;br /&gt;
 [[if]](@varl!=@vars)&lt;br /&gt;
 {&lt;br /&gt;
     [[mes]] &amp;quot;This will never be shown&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Nameless2you</name></author>	</entry>

	</feed>