<?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: Parameter with 2 values. in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136839#M12413</link>
    <description>Daniel:&lt;BR /&gt;
&lt;BR /&gt;
I cannot follow what you are trying to accomplish. Is the number a real number, an integer? Is the empty text field for custom text entry? Perhaps if you give a fuller description of what the goal is for, then someone will have better ideas for varied solutions.&lt;BR /&gt;
&lt;BR /&gt;
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Sun, 16 Feb 2014 13:31:23 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2014-02-16T13:31:23Z</dc:date>
    <item>
      <title>Parameter with 2 values.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136838#M12412</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello everyone, I would like to have one parameter with 2 different values for 2 situations.&lt;BR /&gt;
1.  with one value from 1 to infinity&lt;BR /&gt;
2. should be no value, only empty text.&lt;BR /&gt;
&lt;BR /&gt;
What kind of parameter should i choose? I mean should be "real number" or "text value *(that one with the ABC icon)"?&lt;BR /&gt;
&lt;BR /&gt;
Please see attached. I am not sure about the script command. Hope you will understand what i mean.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot,&lt;BR /&gt;
&lt;BR /&gt;
Daniel&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/11610iCDA92F1C85CBD6F3/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Script.JPG" title="Script.JPG" /&gt;</description>
      <pubDate>Sun, 16 Feb 2014 09:41:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136838#M12412</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2014-02-16T09:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter with 2 values.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136839#M12413</link>
      <description>Daniel:&lt;BR /&gt;
&lt;BR /&gt;
I cannot follow what you are trying to accomplish. Is the number a real number, an integer? Is the empty text field for custom text entry? Perhaps if you give a fuller description of what the goal is for, then someone will have better ideas for varied solutions.&lt;BR /&gt;
&lt;BR /&gt;
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Sun, 16 Feb 2014 13:31:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136839#M12413</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2014-02-16T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter with 2 values.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136840#M12414</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
Each parameter can only have a single type, be it REAL or TEXT. In your case, you must create two different parameters, and in the scripts select the value to use according to what you need.&lt;BR /&gt;
&lt;BR /&gt;
Something like:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;valueToBeUsed = ""

IF thisConditionIsMet THEN
   valueToBeUsed = theREAL_parameter
ELSE
   valueToBeUsed = theTEXT_parameter
ENDIF&lt;/PRE&gt;

Best regards.</description>
      <pubDate>Mon, 17 Feb 2014 16:48:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136840#M12414</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-02-17T16:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter with 2 values.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136841#M12415</link>
      <description>it REALLY depends of the intended use. &lt;BR /&gt;
&lt;BR /&gt;
If you want to show a parameter only if it is non-zero, you can use the HIDEPARAMETER command:&lt;BR /&gt;

&lt;PRE&gt;IF TheValue=0 THEN HIDEPARAMETER "TheValue"&lt;/PRE&gt;

Or, in some other case, just use a TEXT parameter and set its value to " " (empty or a space) in one situation (hide-condition met)  or to a "written number" with the STR function:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IF TheValue &amp;gt; 0 THEN
   PARAMETERS param = STR(TheValue, 3,2)
ELSE
   PARAMETERS param = ""
ENDIF
&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Mar 2014 15:18:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Parameter-with-2-values/m-p/136841#M12415</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2014-03-02T15:18:52Z</dc:date>
    </item>
  </channel>
</rss>

