<?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: flag for values{2} in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274181#M8440</link>
    <description>Thanks, arrays are the best &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
    <pubDate>Thu, 07 Apr 2016 10:01:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-07T10:01:28Z</dc:date>
    <item>
      <title>flag for values{2}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274177#M8436</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I would like to create a group for values{2} - values, but it doesn't work. Can anybody help me?&lt;BR /&gt;
&lt;BR /&gt;
Example:&lt;BR /&gt;
&lt;BR /&gt;
I have this:&lt;BR /&gt;
&lt;BR /&gt;
values{2} "A1" 1, 'opt1', 2, 'opt2'&lt;BR /&gt;
values{2} "A2" 1, 'opt1', 2, 'opt2'&lt;BR /&gt;
values{2} "A3" 1, 'opt1', 2, 'opt2'&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
many parameter with the same values&lt;BR /&gt;
&lt;BR /&gt;
I would like to control them together, like this&lt;BR /&gt;
&lt;BR /&gt;
options="1, 'opt1', 2, 'opt2'&lt;BR /&gt;
&lt;BR /&gt;
values{2} "A1" options&lt;BR /&gt;
values{2} "A2" options&lt;BR /&gt;
values{2} "A3" options&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
but this doesn't work&lt;BR /&gt;
Any ideas?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2016 09:21:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274177#M8436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-05T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: flag for values{2}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274178#M8437</link>
      <description>I have not checked this but my first idea is that you should not mix parameter types in a VALUES command. 1 is a number, but 'opt1' is a text. Try this:&lt;BR /&gt;

&lt;PRE&gt;values{2} "A1" '1', 'opt1', '2', 'opt2' &lt;/PRE&gt;

or this:&lt;BR /&gt;

&lt;PRE&gt;values{2} "A1" 1, opt1, 2, opt2 &lt;/PRE&gt;

In this second case, opt1 and opt2 should be number type parameters.</description>
      <pubDate>Tue, 05 Apr 2016 10:21:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274178#M8437</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2016-04-05T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: flag for values{2}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274179#M8438</link>
      <description>First, thanks for the reply, &lt;BR /&gt;
&lt;BR /&gt;
It's not a mix. I would like a numerical parameter values {2} which have a numerical expression, and descriptions as well. &lt;BR /&gt;
&lt;BR /&gt;
like here:&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/gdl-basics/parameter-logic/" target="_blank"&gt;http://gdl.graphisoft.com/gdl-basics/parameter-logic/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
but my problem is, that as I have many parameters, I have to script this about 10-20 times, and If I have to change the values, I would like that all the 10-20 parameters would change together.&lt;BR /&gt;
&lt;BR /&gt;
An other question: &lt;BR /&gt;
&lt;BR /&gt;
Can I refer somehow to the parameters, as a number?&lt;BR /&gt;
&lt;BR /&gt;
I have parameters like this&lt;BR /&gt;
A1, A2, A3, etc&lt;BR /&gt;
&lt;BR /&gt;
and I am looking for a way to loop the value description, like this&lt;BR /&gt;

&lt;PRE&gt;for i=1 to number_of_A's
    values{2} "A+number_of_A's"  1, 'opt1', 2, 'opt2', 3, 'opt3', etc
next i&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 11:12:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274179#M8438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-05T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: flag for values{2}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274180#M8439</link>
      <description>Arrays are your friend in this instance. You would declare two arrays - one for numerical, one for alpha (can't mix type when used in certain situations). Then you just use the array in your value statement.&lt;BR /&gt;
&lt;BR /&gt;
E.g. DIM vDesc[],&lt;BR /&gt;
 VNum[]</description>
      <pubDate>Tue, 05 Apr 2016 12:12:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274180#M8439</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2016-04-05T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: flag for values{2}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274181#M8440</link>
      <description>Thanks, arrays are the best &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 07 Apr 2016 10:01:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/flag-for-values-2/m-p/274181#M8440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-07T10:01:28Z</dc:date>
    </item>
  </channel>
</rss>

