<?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: changing A &amp;amp; B values according to what you pick in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72163#M33638</link>
    <description>Michele,&lt;BR /&gt;
The simplest thing to do is write separate IF statements.&lt;BR /&gt;
&lt;BR /&gt;
IF paramaterDuck=model1 THEN&lt;BR /&gt;
A=1'-5"&lt;BR /&gt;
B=4'-8"&lt;BR /&gt;
endif &lt;BR /&gt;
&lt;BR /&gt;
IF paramaterDuck=model2 THEN&lt;BR /&gt;
A=2'-5"&lt;BR /&gt;
B=3'-8"&lt;BR /&gt;
endif &lt;BR /&gt;
&lt;BR /&gt;
and so on.&lt;BR /&gt;
Peter Devlin</description>
    <pubDate>Thu, 11 May 2006 19:23:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-05-11T19:23:45Z</dc:date>
    <item>
      <title>changing A &amp; B values according to what you pick</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72160#M33635</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm using the wall niche object combined with an object of my own to create something we can actually use. The problem is I want one object to work with 3 different sizes. So I want to add a line like &lt;BR /&gt;
&lt;BR /&gt;
IF paramaterDuck=model1 THEN A=1'-5" AND B=4'-8" Can I add this to the master script. I added it to the 3D script and it looks fine in elevation but the 3D view and plan still shows the values for A and B that is in the dialog box. I hope I explained this well enough.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help,&lt;BR /&gt;
Michele&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 May 2006 14:32:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72160#M33635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-09T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: changing A &amp; B values according to what you pick</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72161#M33636</link>
      <description>Michele,&lt;BR /&gt;
I believe there is something wrong with the syntax.&lt;BR /&gt;
If, indeed, you have written ,&lt;BR /&gt;
"IF paramaterDuck=model1 THEN A=1'-5" AND B=4'-8",&lt;BR /&gt;
this does not work in GDL.&lt;BR /&gt;
You can not use "AND" in the right side of the IF....THEN.... statement.&lt;BR /&gt;
You need to write: &lt;BR /&gt;
 &lt;BR /&gt;
IF paramaterDuck=model1 THEN&lt;BR /&gt;
A=1'-5"&lt;BR /&gt;
B=4'-8"&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
When I was learning GDL I tried writing a statement like this&lt;BR /&gt;
and several people explained to me that "AND" is the logical AND&lt;BR /&gt;
not the  additive AND.&lt;BR /&gt;
&lt;BR /&gt;
Yes, put it in the master script.&lt;BR /&gt;
&lt;BR /&gt;
I hope this helps,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 09 May 2006 19:00:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72161#M33636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-09T19:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: changing A &amp; B values according to what you pick</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72162#M33637</link>
      <description>Thanks for the help. THere's more than 1 option so I'll have to look in the cookbook to see how to write that. Would I just need to add and else between each option and end with an endif or an end?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele</description>
      <pubDate>Thu, 11 May 2006 18:23:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72162#M33637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-11T18:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: changing A &amp; B values according to what you pick</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72163#M33638</link>
      <description>Michele,&lt;BR /&gt;
The simplest thing to do is write separate IF statements.&lt;BR /&gt;
&lt;BR /&gt;
IF paramaterDuck=model1 THEN&lt;BR /&gt;
A=1'-5"&lt;BR /&gt;
B=4'-8"&lt;BR /&gt;
endif &lt;BR /&gt;
&lt;BR /&gt;
IF paramaterDuck=model2 THEN&lt;BR /&gt;
A=2'-5"&lt;BR /&gt;
B=3'-8"&lt;BR /&gt;
endif &lt;BR /&gt;
&lt;BR /&gt;
and so on.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 11 May 2006 19:23:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72163#M33638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-11T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: changing A &amp; B values according to what you pick</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72164#M33639</link>
      <description>&lt;BLOCKQUOTE&gt;Michele wrote:&lt;BR /&gt;Thanks for the help. THere's more than 1 option so I'll have to look in the cookbook to see how to write that. Would I just need to add and else between each option and end with an endif or an end?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele&lt;/BLOCKQUOTE&gt;
You can only use one else statement which is sandwiched between the if and endif commands&lt;BR /&gt;
if…&lt;BR /&gt;
statement A&lt;BR /&gt;
statement B&lt;BR /&gt;
else&lt;BR /&gt;
statement 1&lt;BR /&gt;
statement 2&lt;BR /&gt;
endif</description>
      <pubDate>Thu, 11 May 2006 22:47:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-A-amp-B-values-according-to-what-you-pick/m-p/72164#M33639</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2006-05-11T22:47:52Z</dc:date>
    </item>
  </channel>
</rss>

