<?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 Re: Refer to parameters within if statement in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Refer-to-parameters-within-if-statement/m-p/274679#M7952</link>
    <description>You can't concatenate variable names like this in GDL (although you can in other languages). To do the same thing, use an array. These are declared using the DIM statement e.g. DIM arrayName[]</description>
    <pubDate>Fri, 08 Apr 2016 06:41:14 GMT</pubDate>
    <dc:creator>Bruce</dc:creator>
    <dc:date>2016-04-08T06:41:14Z</dc:date>
    <item>
      <title>Refer to parameters within if statement</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Refer-to-parameters-within-if-statement/m-p/274678#M7951</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi!&lt;BR /&gt;
&lt;BR /&gt;
As a newbie in GDL, I can't get how to get together string and numbers.&lt;BR /&gt;
My case:&lt;BR /&gt;
&lt;BR /&gt;
I have parameters: a1, a2, a3, a4, a5 etc... with the same values&lt;BR /&gt;
&lt;BR /&gt;
I want to create an if statement with all of the parameters, but it doesn't work, I can not create a right script to describe the parameters&lt;BR /&gt;

&lt;PRE&gt;for i=1 to 10
if a+str(i) = something then
....build something....
else
....build something else....
endif
next i&lt;/PRE&gt;

&lt;BR /&gt;
if I want to loop with values, it works, but I don't get why, and how to &lt;BR /&gt;

&lt;PRE&gt;for i=1 to 10
value "a"+str(i,1,0) param1, param2
next i&lt;/PRE&gt;

can somebody explane it to me?&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Apr 2016 10:12:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Refer-to-parameters-within-if-statement/m-p/274678#M7951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-07T10:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to parameters within if statement</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Refer-to-parameters-within-if-statement/m-p/274679#M7952</link>
      <description>You can't concatenate variable names like this in GDL (although you can in other languages). To do the same thing, use an array. These are declared using the DIM statement e.g. DIM arrayName[]</description>
      <pubDate>Fri, 08 Apr 2016 06:41:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Refer-to-parameters-within-if-statement/m-p/274679#M7952</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2016-04-08T06:41:14Z</dc:date>
    </item>
  </channel>
</rss>

