<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Are GDL arrays 0 indexed? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361529#M2231</link>
    <description>&lt;P&gt;I'm asking this since my supervisor is always starts array at 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DIM potato[]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[1] = "russet"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[2] = "yukon"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[3] = "red lady"&lt;/PRE&gt;&lt;P&gt;To be honest, having 1 as the start of the index, kinda weirds me out but at the same time I'm also a bit curious if it is 0 indexed. Does this mean potato[0] does not exist or is potato[0] a none type?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 22:52:27 GMT</pubDate>
    <dc:creator>Jack D</dc:creator>
    <dc:date>2022-11-08T22:52:27Z</dc:date>
    <item>
      <title>Are GDL arrays 0 indexed?</title>
      <link>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361529#M2231</link>
      <description>&lt;P&gt;I'm asking this since my supervisor is always starts array at 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DIM potato[]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[1] = "russet"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[2] = "yukon"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;potato[3] = "red lady"&lt;/PRE&gt;&lt;P&gt;To be honest, having 1 as the start of the index, kinda weirds me out but at the same time I'm also a bit curious if it is 0 indexed. Does this mean potato[0] does not exist or is potato[0] a none type?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 22:52:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361529#M2231</guid>
      <dc:creator>Jack D</dc:creator>
      <dc:date>2022-11-08T22:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Are GDL arrays 0 indexed?</title>
      <link>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361532#M2232</link>
      <description>&lt;P&gt;In GDL, arrays are always indexed from [1] or a 2D array would be [1][1]. Your example of potato[0] should throw up an invalid index warning when you check your script.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 23:09:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361532#M2232</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-11-08T23:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Are GDL arrays 0 indexed?</title>
      <link>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361545#M2233</link>
      <description>&lt;P&gt;ahh thanks! I've been looking for some mention if it's 0 index in the pdf guide but got nothing. Which got me thinking.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 00:54:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/361545#M2233</guid>
      <dc:creator>Jack D</dc:creator>
      <dc:date>2022-11-09T00:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Are GDL arrays 0 indexed?</title>
      <link>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/362196#M2234</link>
      <description>&lt;P&gt;Here are the details of using arrays: &lt;A href="https://gdl.Graphisoft.com/reference-guide/expressions#DIM_gdlcommand" target="_blank"&gt;https://gdl.Graphisoft.com/reference-guide/expressions#DIM_gdlcommand&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:31:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Are-GDL-arrays-0-indexed/m-p/362196#M2234</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-11-16T15:31:57Z</dc:date>
    </item>
  </channel>
</rss>

